/* Profile Section - DHA Bahawalpur */
/* Complete Responsive Design for All Screen Sizes */

/* Base Profile Section Styles */
#profile-section {
    display: none;
}

#profile-section.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.profile-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar-section {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(234, 85, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.avatar-upload:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.1), rgba(253, 198, 44, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(234, 85, 71, 0.2);
    margin-bottom: 0.8rem;
}

.profile-role i {
    font-size: 0.7rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Profile Navigation Tabs */
.profile-tabs {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.profile-tab {
    flex: 1;
    padding: 1.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.profile-tab.active {
    color: var(--primary-color);
    background: white;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.profile-tab:hover:not(.active) {
    background: #f1f5f9;
    color: var(--text-primary);
}

.profile-tab i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Profile Content Sections */
.profile-tab-content {
    display: none;
    padding: 2rem;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Personal Information Form */
.profile-form {
    display: grid;
    gap: 2rem;
}

.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 85, 71, 0.1);
}

.form-input:disabled {
    background: #f1f5f9;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 85, 71, 0.1);
}

.form-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 85, 71, 0.1);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 85, 71, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Account Settings */
.settings-list {
    display: grid;
    gap: 1rem;
}

.setting-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.setting-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.1);
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.1), rgba(253, 198, 44, 0.1));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.setting-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.setting-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.setting-action {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(26px);
}

/* Security Section */
.security-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.security-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.security-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.security-status.secure {
    background: #d1fae5;
    color: #065f46;
}

.security-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.password-requirements {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.password-requirements h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-list li i {
    color: #10b981;
}

/* Responsive Design */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-tabs-header {
        flex-direction: column;
    }
    
    .profile-tab {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .profile-tab:last-child {
        border-bottom: none;
    }
    
    .profile-tab.active::after {
        height: 3px;
        left: 1rem;
        right: 1rem;
    }
    
    .profile-tab-content {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .setting-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .setting-action {
        justify-content: flex-end;
        margin-left: auto;
        flex-shrink: 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .profile-container {
        padding: 0.5rem;
    }
    
    .profile-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .avatar-upload {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-email {
        font-size: 0.9rem;
    }
    
    .profile-tabs-header {
        flex-direction: column;
    }
    
    .profile-tab {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .profile-tab-content {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .profile-container {
        padding: 2.5rem;
    }
    
    .profile-header {
        padding: 2.5rem;
    }
    
    .profile-avatar {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
    }
    
    .profile-name {
        font-size: 2.2rem;
    }
    
    .profile-tabs-header {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Ultra-wide screens (2560px+) */
@media (min-width: 2561px) {
    .profile-container {
        padding: 4rem;
        max-width: 1600px;
    }
    
    .profile-header {
        padding: 3rem;
    }
    
    .profile-avatar {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }
    
    .profile-name {
        font-size: 2.5rem;
    }
    
    .profile-email {
        font-size: 1.3rem;
    }
    
    .profile-tab {
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
    }
    
    .profile-tab-content {
        padding: 3rem;
    }
    
    .form-section {
        padding: 2.5rem;
    }
    
    .form-section-title {
        font-size: 1.4rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 