/* Profile Section */
.profile-section {
    min-height: calc(100vh - 65px);
    padding: 2rem 0;
    background: var(--dark-bg);
}

.profile-section .container {
    max-width: 1200px;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--dark-card), #16213e);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 1rem;
}

.avatar-upload-btn i {
    font-size: 1.5rem;
}

/* Profile Header Info */
.profile-header-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.stat-item i {
    color: var(--primary-color);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Profile Content */
.profile-content {
    display: grid;
    gap: 2rem;
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, var(--dark-card), #16213e);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--primary-color);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 0.85rem 1rem;
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input:read-only,
.form-group select:disabled {
    background: rgba(15, 15, 35, 0.4);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\2713';
    color: var(--white);
    font-size: 0.85rem;
    font-weight: bold;
}



.checkbox-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Resume Upload */
.resume-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.05);
}

.resume-status i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resume-status p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.resume-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.resume-info {
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.resume-file {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-file > i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.resume-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.resume-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.resume-size {
    font-size: 0.85rem;
    color: var(--text-light);
}

.resume-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-icon:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.btn-icon.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Account Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(15, 15, 35, 0.8);
    border-color: rgba(139, 92, 246, 0.4);
}

.setting-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.setting-info > i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.setting-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 34px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.terms-accepted {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
}

.terms-accepted i {
    font-size: 1.2rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s ease;
    z-index: 1000;
}

.success-message.show {
    opacity: 1;
    transform: translateX(0);
}

.success-message i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .profile-header-info {
        width: 100%;
    }

    .profile-actions {
        width: 100%;
        justify-content: stretch;
    }

    .profile-actions button {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .success-message {
        right: 1rem;
        left: 1rem;
    }
}
