/* NISOPAC Dashboard Styles */
.nisopac-dashboard {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
}

/* Sidebar Styles */
.nisopac-sidebar {
    width: 280px;
    background:#0a7d3d;
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nisopac-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.nisopac-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.nisopac-sidebar li {
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.nisopac-sidebar a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nisopac-sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nisopac-sidebar a:hover::before {
    left: 100%;
}

.nisopac-sidebar a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nisopac-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(8px);
}

.nisopac-sidebar a.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: #ffffff;
    border-radius: 2px;
}

#nisopac-logout {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

#nisopac-logout:hover {
    background-color: rgba(255, 77, 77, 0.2) !important;
    color: #ffffff !important;
}

/* Main Content */
.nisopac-main {
    flex: 1;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.nisopac-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Sections */
.nisopac-section {
    display: none;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease-out;
}

.nisopac-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nisopac-section h3 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.nisopac-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0a7d3d, #764ba2);
    border-radius: 2px;
}

/* Membership Status */
#membership p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

#membership strong {
    color: #2d3748;
    font-weight: 600;
}

/* Profile Section */
#profile-view p {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

#profile-view strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 150px;
    display: inline-block;
}

#view-profile_picture {
    border: 3px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
#nisopac-profile-form {
    max-width: 800px;
}

#nisopac-profile-form > div,
.form-group {
    margin-bottom: 2rem;
}

#nisopac-profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

#nisopac-profile-form input[type="text"],
#nisopac-profile-form input[type="tel"],
#nisopac-profile-form input[type="email"],
#nisopac-profile-form input[type="file"],
#nisopac-profile-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    box-sizing: border-box;
}

#nisopac-profile-form input:focus,
#nisopac-profile-form textarea:focus {
    outline: none;
    border-color: #0a7d3d;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

#nisopac-profile-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox Groups */
.nisopac-checkbox-group {
    margin-top: 1rem;
}

.nisopac-checkbox-group > div {
    margin-bottom: 0.75rem;
}

.nisopac-checkbox-group label {
    display: flex !important;
    align-items: center;
    font-weight: 500 !important;
    color: #4a5568 !important;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nisopac-checkbox-group label:hover {
    background-color: #f7fafc;
}

.nisopac-checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.75rem;
    transform: scale(1.2);
    cursor: pointer;
}

.nisopac-checkbox-group input[type="checkbox"]:checked + label,
.nisopac-checkbox-group label:has(input[type="checkbox"]:checked) {
    background-color: rgba(102, 126, 234, 0.1);
    color: #0a7d3d !important;
    border-left: 3px solid #0a7d3d;
}

/* Buttons */
button,
#paystackBtn,
#edit-profile {
    background: #0a7d3d;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button::before,
#paystackBtn::before,
#edit-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0a7d3d;
    transition: left 0.5s;
}

button:hover::before,
#paystackBtn:hover::before,
#edit-profile:hover::before {
    left: 100%;
}

button:hover,
#paystackBtn:hover,
#edit-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

button:active,
#paystackBtn:active,
#edit-profile:active {
    transform: translateY(0);
}

/* Events List */
#events ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#events li {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

#events li:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

#events a {
    color: #0a7d3d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

#events a:hover {
    color: #764ba2;
}

#events small {
    color: #718096;
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Response Messages */
#profile-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#profile-response.success {
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

#profile-response.error {
    background-color: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nisopac-dashboard {
        flex-direction: column;
    }
    
    .nisopac-sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .nisopac-sidebar ul {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .nisopac-sidebar li {
        flex-shrink: 0;
        padding: 0 0.5rem;
    }
    
    .nisopac-sidebar a {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    
    .nisopac-main {
        padding: 1.5rem;
    }
    
    .nisopac-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nisopac-section h3 {
        font-size: 1.5rem;
    }
    
    .nisopac-main {
        padding: 1rem;
    }
    
    .nisopac-section {
        padding: 1rem;
        border-radius: 16px;
    }
    
    button,
    #paystackBtn,
    #edit-profile {
        width: 100%;
        padding: 1.25rem;
    }
    
    .nisopac-checkbox-group label {
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
.nisopac-main {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.nisopac-main::-webkit-scrollbar {
    width: 8px;
}

.nisopac-main::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.nisopac-main::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.nisopac-main::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Loading States */
.nisopac-loading {
    opacity: 0.6;
    pointer-events: none;
}

.nisopac-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0a7d3d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}