/* ===============================================
   Profile Edit Page Styles
   Matches Figma design with LifterLMS integration
   =============================================== */

:root {
    --profile-primary: #335EF7;
    --profile-primary-hover: #102692;
    --profile-dark: #000000;
    --profile-gray-100: #F8FAFC;
    --profile-gray-200: #E2E8F0;
    --profile-gray-300: #CBD5E1;
    --profile-gray-400: #474d56;
    --profile-gray-600: #475569;
    --profile-gray-800: #000000;
    --profile-white: #FFFFFF;
    --profile-red: #FF4D67;
    --profile-green: #10B981;
    --profile-border-radius: 8px;
    --profile-transition: all 0.3s ease;
}

/* Main Wrapper */
.profile-edit-wrapper {
    min-height: 100vh;
    background-color: var(--profile-gray-100);
    padding: 2rem 1rem;
}

.profile-edit-container {
    max-width: 900px;
    margin: 0 auto;
    /* display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem; */
    align-items: center;
}

/* Sidebar Navigation */
.profile-sidebar {
    background: var(--profile-white);
    border-radius: var(--profile-border-radius);
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav-item {
    padding: 1rem 1.5rem;
    color: var(--profile-gray-600);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: var(--profile-transition);
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
}

.profile-nav-item:hover {
    background-color: var(--profile-gray-100);
    color: var(--profile-dark);
}

.profile-nav-item.active {
    background-color: #E0E7FF;
    color: var(--profile-primary);
    border-left-color: var(--profile-primary);
}

.profile-nav-item.delete-account {
    color: var(--profile-red);
    margin-top: 1rem;
}

.profile-nav-item.delete-account:hover {
    background-color: #FEE2E2;
}

/* Main Content */
.profile-main-content {
    background: var(--profile-white);
    border-radius: var(--profile-border-radius);
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--profile-dark);
    margin: 0 0 0.5rem 0;
}

.profile-subtitle {
    font-size: 0.938rem;
    color: var(--profile-gray-400);
    margin: 0;
}

/* Messages */
.profile-success-message,
.profile-error-message {
    padding: 1rem 1.25rem;
    border-radius: var(--profile-border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.938rem;
}

.profile-success-message {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.profile-error-message {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid var(--profile-red);
}

/* Avatar Section */
.profile-avatar-section {
    display: flex;
    margin-bottom: 2.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar-initials,
.profile-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--profile-dark);
    background-color: var(--profile-gray-100);
    border: 3px solid var(--profile-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-avatar-img {
    object-fit: cover;
}

.profile-avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--profile-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--profile-transition);
    border: 3px solid var(--profile-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.profile-avatar-upload:hover {
    background: var(--profile-primary-hover);
    transform: scale(1.05);
}

.profile-avatar-upload svg {
    width: 20px;
    height: 20px;
}

.profile-avatar-input {
    display: none;
}

/* Form */
.profile-form {
    max-width: 800px;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
}

.profile-form-group-full {
    margin-bottom: 1.5rem;
}

.profile-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--profile-gray-800);
    margin-bottom: 0.5rem;
}

.profile-input,
.profile-textarea {
    padding: 0.75rem 1rem;
    font-size: 0.938rem;
    color: var(--profile-dark);
    background-color: var(--profile-white);
    border: 1px solid var(--profile-gray-300);
    border-radius: var(--profile-border-radius);
    transition: var(--profile-transition);
    font-family: inherit;
}

.profile-input:focus,
.profile-textarea:focus {
    outline: none;
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.profile-textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-textarea::placeholder {
    color: var(--profile-gray-400);
}

/* Submit Button */
.profile-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
}

.profile-submit-btn {
    padding: 0.875rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--profile-white);
    background: var(--profile-primary);
    border: none;
    border-radius: var(--profile-border-radius);
    cursor: pointer;
    transition: var(--profile-transition);
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.profile-submit-btn:hover {
    background: var(--profile-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.profile-submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-edit-container {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .profile-edit-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Firefox */
    }
    
    /* Scrollbar styling */
    .profile-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    
    .profile-sidebar::-webkit-scrollbar-track {
        background: var(--profile-gray-100);
    }
    
    .profile-sidebar::-webkit-scrollbar-thumb {
        background: var(--profile-gray-300);
        border-radius: 2px;
    }
    
    .profile-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--profile-gray-400);
    }
    
    .profile-nav {
        flex-direction: row;
        display: flex;
        gap: 0;
        min-width: max-content; /* Prevent wrapping */
    }
    
    .profile-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.875rem 1.25rem;
        flex-shrink: 0; /* Prevent items from shrinking */
        font-size: 0.875rem;
    }
    
    .profile-nav-item.active {
        border-left: none;
        border-bottom-color: var(--profile-primary);
        background-color: #E0E7FF;
    }
    
    .profile-nav-item.delete-account {
        margin-top: 0;
        margin-left: auto; /* Push to the end */
    }
    
    .profile-main-content {
        padding: 1.5rem;
    }
    
    .profile-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-edit-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .profile-sidebar {
        margin: 0 -0.5rem; /* Extend to screen edges */
        border-radius: 0;
    }
    
    .profile-nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.813rem; /* Slightly smaller text */
    }
    
    .profile-main-content {
        padding: 1.25rem;
    }
    
    .profile-title {
        font-size: 1.5rem;
    }
    
    .profile-avatar-wrapper,
    .profile-avatar-initials,
    .profile-avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-initials {
        font-size: 2rem;
    }
    
    .profile-submit-btn {
        width: 100%;
    }
}

/* Integration with existing dashboard styles */
body.page-template-page-profile-edit {
    background-color: var(--profile-gray-100);
}

/* LifterLMS specific overrides */
.llms-student-dashboard .profile-edit-wrapper {
    margin-top: 0;
}

.llms-student-dashboard .profile-main-content {
    background: var(--profile-white);
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --profile-dark: #F8FAFC;
        --profile-gray-100: #000000;
        --profile-gray-200: #334155;
        --profile-gray-300: #475569;
        --profile-gray-400: #94A3B8;
        --profile-gray-600: #CBD5E1;
        --profile-gray-800: #F8FAFC;
        --profile-white: #0F172A;
    }
}
/* ===============================================
   Security Page Additional Styles
   Password change form with eye toggle
   =============================================== */

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .profile-input {
    padding-right: 3rem;
    flex: 1;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--profile-gray-400);
    transition: var(--profile-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.password-toggle:hover {
    color: var(--profile-gray-600);
    background-color: var(--profile-gray-100);
}

.password-toggle:focus {
    outline: 2px solid var(--profile-primary);
    outline-offset: 2px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Password Hint */
.password-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.813rem;
    color: var(--profile-gray-400);
}

/* Security Form Specific */
.security-form .profile-form-group-full {
    max-width: 500px;
}

/* Password Strength Indicator (Optional Enhancement) */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background-color: var(--profile-gray-200);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.active {
    display: block;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background-color: var(--profile-red);
}

.password-strength-bar.medium {
    width: 66%;
    background-color: #F59E0B;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: var(--profile-green);
}

.password-strength-text {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.password-strength-text.weak {
    color: var(--profile-red);
}

.password-strength-text.medium {
    color: #F59E0B;
}

.password-strength-text.strong {
    color: var(--profile-green);
}

/* Validation States */
.profile-input.is-invalid {
    border-color: var(--profile-red);
}

.profile-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.profile-input.is-valid {
    border-color: var(--profile-green);
}

.profile-input.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Error Text */
.field-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.813rem;
    color: var(--profile-red);
}

/* Success State for Password Change */
.profile-success-message.password-changed {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-success-message.password-changed::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .security-form .profile-form-group-full {
        max-width: 100%;
    }
    
    .password-toggle {
        padding: 0.625rem;
    }
    
    .password-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .password-hint {
        font-size: 0.75rem;
    }
    
    .profile-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Loading State */
.profile-submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.profile-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--profile-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Visible for Better Accessibility */
.password-toggle:focus-visible {
    outline: 2px solid var(--profile-primary);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .password-toggle {
        color: var(--profile-gray-400);
    }
    
    .password-toggle:hover {
        color: var(--profile-gray-300);
        background-color: var(--profile-gray-200);
    }
}
/* ===============================================
   Delete Account Page Styles
   =============================================== */

/* Header Section */
.delete-account-header {
    margin-bottom: 2.5rem;
}

.delete-account-warning {
    font-size: 0.938rem;
    color: var(--profile-gray-600);
    line-height: 1.6;
    margin: 0.75rem 0 0 0;
    padding: 1rem;
    background-color: #FEF3C7;
    border-left: 4px solid #F59E0B;
    border-radius: 4px;
}

/* Info Sections */
.delete-info-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--profile-gray-200);
}

.delete-info-section:last-of-type {
    border-bottom: none;
}

.delete-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--profile-dark);
    margin: 0 0 1rem 0;
}

.delete-section-description {
    font-size: 0.938rem;
    color: var(--profile-gray-600);
    margin: 0 0 1rem 0;
}

/* Info Lists */
.delete-info-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.delete-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.938rem;
    color: var(--profile-gray-800);
    line-height: 1.6;
}

.delete-info-list .list-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Suggestions list with different icon color */
.delete-info-list.suggestions li {
    color: var(--profile-gray-600);
}

/* Warning Text */
.delete-warning-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--profile-red);
    font-style: italic;
    margin: 1rem 0 0 0;
}

/* Help Section */
.delete-help-section {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--profile-border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.delete-help-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--profile-dark);
    margin: 0 0 0.5rem 0;
}

.delete-help-text {
    font-size: 0.938rem;
    color: var(--profile-gray-600);
    margin: 0;
    line-height: 1.6;
}

.delete-help-link {
    color: var(--profile-primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--profile-transition);
}

.delete-help-link:hover {
    color: var(--profile-primary-hover);
    text-decoration: underline;
}

/* Confirmation Section */
.delete-confirmation-section {
    background-color: #FEF2F2;
    border: 2px solid #FEE2E2;
    border-radius: var(--profile-border-radius);
    padding: 2rem;
    margin-top: 2.5rem;
}

.delete-confirmation-text {
    font-size: 0.938rem;
    color: var(--profile-gray-600);
    margin: 0.75rem 0 1.5rem 0;
    line-height: 1.6;
}

/* Delete Form */
.delete-account-form {
    max-width: 500px;
}

.delete-account-form .profile-form-group {
    margin-bottom: 1.5rem;
}

/* Action Buttons */
.delete-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-delete-btn,
.delete-submit-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: var(--profile-border-radius);
    cursor: pointer;
    transition: var(--profile-transition);
    flex: 1;
}

.cancel-delete-btn {
    color: var(--profile-gray-800);
    background-color: var(--profile-white);
    border: 2px solid var(--profile-gray-300);
}

.cancel-delete-btn:hover {
    background-color: var(--profile-gray-100);
    border-color: var(--profile-gray-400);
}

.delete-submit-btn {
    color: var(--profile-white);
    background-color: var(--profile-red);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.delete-submit-btn:hover {
    background-color: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-submit-btn:active {
    transform: translateY(0);
}

/* Confirmation Modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.delete-modal-content {
    position: relative;
    background: var(--profile-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delete-modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.delete-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-dark);
    text-align: center;
    margin: 0 0 1rem 0;
}

.delete-modal-text {
    font-size: 0.938rem;
    color: var(--profile-gray-600);
    text-align: center;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.delete-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-cancel-btn,
.modal-confirm-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--profile-border-radius);
    cursor: pointer;
    transition: var(--profile-transition);
    width: 100%;
}

.modal-cancel-btn {
    color: var(--profile-gray-800);
    background-color: var(--profile-white);
    border: 2px solid var(--profile-gray-300);
}

.modal-cancel-btn:hover {
    background-color: var(--profile-gray-100);
}

.modal-confirm-btn {
    color: var(--profile-white);
    background-color: var(--profile-red);
}

.modal-confirm-btn:hover {
    background-color: #DC2626;
}

.modal-confirm-btn:disabled {
    background-color: var(--profile-gray-400);
    cursor: not-allowed;
}

/* Active Delete Account Nav Item */
.profile-nav-item.delete-account.active {
    background-color: #FEE2E2;
    color: var(--profile-red);
    border-left-color: var(--profile-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .delete-account-warning {
        font-size: 0.875rem;
        padding: 0.875rem;
    }
    
    .delete-section-title {
        font-size: 1.125rem;
    }
    
    .delete-info-list li {
        font-size: 0.875rem;
    }
    
    .delete-help-section {
        padding: 1.25rem;
    }
    
    .delete-confirmation-section {
        padding: 1.5rem;
    }
    
    .delete-actions {
        flex-direction: column;
    }
    
    .cancel-delete-btn,
    .delete-submit-btn {
        width: 100%;
    }
    
    .delete-modal-content {
        padding: 1.5rem;
    }
    
    .delete-modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .delete-account-header {
        margin-bottom: 2rem;
    }
    
    .delete-info-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .delete-account-warning {
        font-size: 0.813rem;
    }
    
    .delete-info-list li {
        font-size: 0.813rem;
        gap: 0.5rem;
    }
    
    .delete-info-list .list-icon {
        width: 18px;
        height: 18px;
    }
    
    .delete-help-section {
        padding: 1rem;
    }
    
    .delete-help-title {
        font-size: 1rem;
    }
    
    .delete-help-text {
        font-size: 0.875rem;
    }
    
    .delete-confirmation-section {
        padding: 1.25rem;
    }
    
    .delete-modal-content {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .delete-modal-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .modal-cancel-btn,
    .modal-confirm-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.938rem;
    }
}

/* Loading State */
.delete-submit-btn.loading,
.modal-confirm-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.delete-submit-btn.loading::after,
.modal-confirm-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--profile-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .delete-account-warning {
        background-color: #78350F;
        border-left-color: #F59E0B;
    }
    
    .delete-help-section {
        background-color: #1E3A8A;
        border-color: #3B82F6;
    }
    
    .delete-confirmation-section {
        background-color: #7F1D1D;
        border-color: #DC2626;
    }
    
    .delete-modal-content {
        background: var(--profile-white);
    }
}

/* Print Styles */
@media print {
    .delete-actions,
    .delete-modal,
    .profile-sidebar {
        display: none;
    }
    
    .delete-confirmation-section {
        background-color: transparent;
        border: 1px solid #000;
    }
}
/* Base Styles - Reusing from Profile Page */
.certificates-page {
    background: #F9FAFB;
    min-height: 100vh;
    padding: 40px 20px;
}

.certificates-page .profile-header {
    margin-bottom: 32px;
}

/* Stats Section */
.certificates-stats {
    margin-bottom: 32px;
    display: flex;
}

.stat-card {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    padding: 14px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.badges-stats .stat-card, .certificates-stats .stat-card{
    max-width: 180px;
}
.stat-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color:#ffffff;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
    color:#ffffff;
}

/* Empty State */
.certificates-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 16px;
    margin-top: 24px;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.6;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #3B82F6;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.empty-state-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

/* Certificate Card */
.certificate-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-color: #3B82F6;
}

.certificate-card:hover::before {
    opacity: 1;
}

/* Certificate Image */
.certificate-image-wrapper {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.certificate-badge-earned {
    animation: certificateFloat 3s ease-in-out infinite;
}

@keyframes certificateFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Certificate Info */
.certificate-info {
    margin-bottom: 20px;
    width: 100%;
}

.certificate-title {
    font-size: 19px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
    line-height: 1.4;
}

.certificate-date {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 6px 0;
}

.certificate-course {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0;
    font-style: italic;
}

/* Certificate Actions */
.certificate-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.certificate-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.certificate-btn-view {
    background: #F3F4F6;
    color: #4B5563;
    border: 2px solid #E5E7EB;
}

.certificate-btn-view:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.certificate-btn-download {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.certificate-btn-download:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .certificates-page {
        padding: 24px 16px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-card {
        padding: 24px;
    }
    
    .certificate-image-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .stat-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .empty-state-title {
        font-size: 22px;
    }
    
    .empty-state-text {
        font-size: 14px;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .certificate-btn {
        width: 100%;
    }
}
/* Base Styles - Reusing from Profile Page */
.badges-page {
    background: #F9FAFB;
    min-height: 100vh;
    padding: 40px 20px;
}

.badges-page .profile-header {
    margin-bottom: 32px;
}

/* Stats Section */
.badges-stats {
    margin-bottom: 32px;
    display: flex;
}

/* Empty State */
.badges-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: 16px;
    margin-top: 24px;
}

.empty-state-icon {
    margin-bottom: 32px;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.empty-state-text {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.6;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #335EF7;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(129, 140, 248, 0.3);
}

.empty-state-btn:hover {
    background: #6366F1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(129, 140, 248, 0.4);
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

/* Badge Card */
.badge-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #335EF7, #A78BFA);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-color: #335EF7;
}

.badge-card:hover::before {
    opacity: 1;
}

/* Badge Image */
.badge-image-wrapper {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.badge-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    animation: badgeFloat 3s ease-in-out infinite;
}

.badge-default-icon {
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Badge Status Tag */
.badge-status-tag {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-status-tag.earned {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.badge-status-tag.locked {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
}

/* Badge Info */
.badge-info {
    width: 100%;
}

.badge-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
    line-height: 1.4;
}

.badge-description {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.badge-date,
.badge-course {
    font-size: 12px;
    color: #9CA3AF;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.badge-date svg,
.badge-course svg {
    opacity: 0.7;
}

/* Locked Badge Styles */
.badge-card.locked {
    opacity: 0.6;
}

.badge-card.locked .badge-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .badges-page {
        padding: 24px 16px;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .badge-card {
        padding: 20px;
    }
    
    .badge-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .badge-image,
    .badge-default-icon {
        width: 120px;
        height: 120px;
    }
    
    .stat-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .empty-state-title {
        font-size: 22px;
    }
    
    .empty-state-text {
        font-size: 14px;
    }
}
/* Notifications Specific Styles - Extends profile-edit styles */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.mark-all-form {
    margin-top: 0;
}

.mark-all-read-btn {
    background: transparent;
    color: #6366F1;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mark-all-read-btn:hover {
    background: #EEF2FF;
}

.mark-all-read-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.notification-item.read {
    background: #FFFFFF;
    opacity: 0.7;
}

.notification-item.hidden-notification {
    display: none;
}

.notification-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.notification-icon.course {
    background: linear-gradient(135deg, #1d47df 0%, #ba4dc7 100%);
}

.notification-icon.assignment {
    background: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
}

.notification-icon.certificate {
    background: linear-gradient(135deg, #f11e08 0%, #3210edc9 100%);
}

.notification-icon.badge {
    background: linear-gradient(135deg, #efc808 0%, #fb0e0e 100%);
}

.notification-icon.discussion {
    background: linear-gradient(135deg, #FA709A 0%, #FEE140 100%);
}

.notification-icon.webinar {
    background: linear-gradient(135deg, #30CFD0 0%, #330867 100%);
}

.notification-icon.feedback {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.notification-icon.resource {
    background: linear-gradient(135deg, #FF9A56 0%, #FFC371 100%);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 14px;
    color: #3f4b5c;
    margin: 0;
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    align-items: center;
}

.notification-time {
    font-size: 13px;
    color: #3f4b5c;
    white-space: nowrap;
}

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #6366F1;
    border: 2px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #F8FAFC;
    border-color: #6366F1;
}

.load-more-btn svg {
    transition: transform 0.2s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.notifications-empty svg {
    margin-bottom: 24px;
}

.notifications-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.notifications-empty p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .mark-all-read-btn {
        align-self: flex-start;
    }
    
    .notification-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .notification-meta {
        width: 100%;
        justify-content: flex-start;
    }
}