/*
 * VietFoto Theme - Member Pages Stylesheet
 * CSS cho trang đăng ký, đăng nhập và dashboard
 */

/* ===== Member Pages (Login/Register) ===== */
.member-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background-color: var(--bg-secondary);
}

.member-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.member-form-container {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
}

.member-form-container h1 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
}

.form-description {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--heading-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background-color: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

body.dark-mode .form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.required {
    color: var(--danger-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body.dark-mode .alert-error {
    background-color: rgba(254, 226, 226, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(254, 202, 202, 0.3);
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

body.dark-mode .alert-success {
    background-color: rgba(220, 252, 231, 0.15);
    color: #86efac;
    border: 1px solid rgba(187, 247, 208, 0.3);
}

/* ===== Form Footer ===== */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ===== Social Login ===== */
.social-login {
    margin-top: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: -1;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-social:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Dashboard ===== */
.member-dashboard {
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    min-height: calc(100vh - 200px);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* ===== Dashboard Sidebar ===== */
.dashboard-sidebar {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.user-info h3 {
    margin: 1rem 0 0.5rem;
    color: var(--heading-color);
}

.btn-view-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
}

.btn-view-portfolio:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-view-portfolio svg {
    flex-shrink: 0;
}

/* Dashboard Menu Styles */
.dashboard-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu-item {
    margin-bottom: 0.5rem;
    display: block;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.dashboard-menu-link:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.dashboard-menu-item.active .dashboard-menu-link {
    background-color: var(--primary-color);
    color: white;
}

.dashboard-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dashboard-menu-text {
    flex: 1;
}

.dashboard-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
    display: block;
}

.logout-link {
    color: var(--danger-color) !important;
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h1 {
    color: var(--heading-color);
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* ===== Dashboard Cards ===== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-secondary);
}

.card-header h3 {
    font-size: 1.125rem;
    color: var(--heading-color);
}

.card-body {
    padding: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 500;
    color: var(--secondary-color);
}

/* ===== Theme Grid ===== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.theme-item {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 0.375rem;
}

.theme-item.active {
    border-color: var(--primary-color);
}

.theme-preview {
    background: var(--bg-secondary);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* ===== Albums ===== */
.dashboard-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.filter-group {
    flex: 1;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.album-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.album-thumbnail {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #14b8a6 0%, #14b8a6 100%);
}

.album-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.btn-icon {
    background: var(--bg-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-primary);
    text-decoration: none;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon:hover {
    background: #14B8A6;
    color: white;
    transform: scale(1.1);
}

.album-info {
    padding: 1rem;
}

.album-info h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.album-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.album-add {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
}

.album-add:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.album-add-content {
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.add-icon {
    font-size: 3rem;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

/* ===== Stats Compact ===== */
.stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item .stat-value {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1rem;
}

.stat-item.stat-highlight .stat-label {
    color: var(--primary-color);
}

.stat-item.stat-highlight .stat-value {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* ===== Stats (Old - keep for other pages) ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* ===== Account Settings ===== */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-upload img {
    border-radius: 50%;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.danger-zone {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--danger-color);
}

.danger-zone h4 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

/* ===== Pricing ===== */
.current-plan-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.plan-icon {
    font-size: 3rem;
}

.plan-info {
    flex: 1;
}

.plan-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
}

.pricing-card.current {
    background: var(--bg-secondary);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.plan-badge.recommended {
    background: var(--primary-color);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    color: var(--secondary-color);
}

.plan-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ===== Profile Page ===== */
.member-profile-page {
    background: var(--bg-secondary);
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.profile-header {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
}

.profile-info {
    position: relative;
    padding: 0 2rem 2rem;
}

.profile-avatar {
    position: absolute;
    top: -60px;
    left: 2rem;
}

.profile-avatar img {
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.profile-details {
    padding-left: 160px;
    padding-top: 1rem;
}

.profile-details h1 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.profile-username {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-bio {
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}

.albums-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-thumbnail {
    height: 200px;
}

.gallery-info {
    padding: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .member-dashboard {
        padding: 0;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    .dashboard-sidebar {
        position: static !important;
        height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 20px !important;
        border-radius: 0 !important;
    }
    
    .user-info {
        margin-bottom: 20px !important;
    }
    
    .user-avatar-wrapper {
        width: 80px !important;
        height: 80px !important;
    }
    
    .user-avatar img,
    .avatar-upload-placeholder,
    .avatar-upload-btn {
        width: 80px !important;
        height: 80px !important;
    }
    
    .avatar-upload-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .avatar-upload-btn span {
        font-size: 11px !important;
    }
    
    .user-display-name-wrapper h3 {
        font-size: 18px !important;
    }
    
    .btn-view-portfolio {
        font-size: 13px !important;
        padding: 8px 16px !important;
        width: 100% !important;
        margin-top: 12px !important;
    }
    
    .dashboard-nav {
        margin-top: 20px !important;
    }
    
    .dashboard-menu-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .dashboard-menu-link {
        flex-direction: column !important;
        gap: 4px !important;
        padding: 12px 8px !important;
        text-align: center !important;
    }
    
    .dashboard-menu-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .dashboard-menu-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .dashboard-menu-text {
        font-size: 12px !important;
    }
    
    .dashboard-content {
        padding: 20px 16px !important;
        background: var(--bg-primary) !important;
    }
    
    .dashboard-section {
        padding: 0 !important;
    }
    
    .section-header {
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .section-header h1 {
        font-size: 22px !important;
    }
    
    .section-description {
        font-size: 14px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .form-group {
        margin-bottom: 16px !important;
    }
    
    .form-control {
        font-size: 16px !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    
    .btn-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
    }
    
    .member-form-container {
        padding: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-details {
        padding-left: 0;
        padding-top: 80px;
    }
    
    .profile-avatar {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dashboard-filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-sidebar {
        padding: 16px !important;
    }
    
    .user-avatar-wrapper {
        width: 70px !important;
        height: 70px !important;
    }
    
    .user-avatar img,
    .avatar-upload-placeholder,
    .avatar-upload-btn {
        width: 70px !important;
        height: 70px !important;
    }
    
    .user-display-name-wrapper h3 {
        font-size: 16px !important;
    }
    
    .btn-view-portfolio {
        font-size: 12px !important;
        padding: 6px 12px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    .dashboard-menu-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .dashboard-menu-link {
        padding: 10px 6px !important;
    }
    
    .dashboard-menu-text {
        font-size: 11px !important;
    }
    
    .dashboard-content {
        padding: 16px 12px !important;
    }
    
    .section-header h1 {
        font-size: 20px !important;
    }
    
    .section-header {
        margin-bottom: 16px !important;
    }
}

/* ===== Modal Popup ===== */
.vietfoto-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease-out;
}

.vietfoto-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.vietfoto-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

body.dark-mode .alert-success {
    background-color: #064e3b;
    color: #d1fae5;
    border-left-color: #059669;
}

body.dark-mode .alert-error {
    background-color: #7f1d1d;
    color: #fee2e2;
    border-left-color: #dc2626;
}

@media (max-width: 576px) {
    .vietfoto-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
}

/* ===== Selected List Modal (Album.php) ===== */
.selected-list-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    animation: fadeIn 0.2s;
}

.selected-list-modal .modal-card {
    background: var(--bg-primary);
    padding: 0;
    border-radius: 1rem;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.selected-list-modal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-list-modal .modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--heading-color);
}

.selected-list-modal .tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.selected-list-modal .tab-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

body.dark-mode .selected-list-modal .tab-btn.active {
    box-shadow: 0 1px 2px rgba(255,255,255,0.1);
}

.selected-list-modal .btn-close-modal {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.selected-list-modal .btn-close-modal:hover {
    background: var(--bg-tertiary);
}

.selected-list-modal .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    background: var(--bg-secondary);
}

.selected-list-modal .loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.selected-list-modal .view-mode,
.selected-list-modal .filter-mode {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

.selected-list-modal .filter-mode {
    padding: 1.5rem;
}

.selected-list-modal .view-mode > div > div {
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.selected-list-modal .browser-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

body.dark-mode .selected-list-modal .browser-notice {
    background: #78350f;
    border-left-color: #fbbf24;
    color: #fef3c7;
}

.selected-list-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.selected-list-modal .filter-source-dir {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    background: var(--bg-secondary);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.selected-list-modal .filter-source-count,
.selected-list-modal .filter-dest-info {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.selected-list-modal .btn-select-dest-folder,
.selected-list-modal .btn-start-filter {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.selected-list-modal .btn-start-filter {
    padding: 1rem;
    font-weight: 600;
}

.selected-list-modal .btn-start-filter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-list-modal .filter-log {
    background: #1e293b;
    color: #10b981;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.75rem;
    height: 200px;
    overflow-y: auto;
    border-radius: 0.5rem;
    line-height: 1.7;
}

.selected-list-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.selected-list-modal .footer-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selected-list-modal .btn-toggle-filter {
    padding: 0.625rem 1.25rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.selected-list-modal .btn-toggle-filter:hover {
    background: #d97706;
}

.selected-list-modal .btn-copy-selections {
    padding: 0.625rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.selected-list-modal .btn-copy-selections:hover {
    background: #2563eb;
}

.selected-list-modal .btn-download-txt {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.selected-list-modal .btn-download-txt:hover {
    background: var(--primary-hover);
}

.selected-list-modal .tab-switcher {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
}

/* Note Items */
.note-item {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.note-item .note-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.note-item .photo-thumbnail-wrapper {
    flex-shrink: 0;
}

.note-item .photo-thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.note-item .photo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.note-item .note-content {
    flex: 1;
    min-width: 0;
}

.note-item .photo-name {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--heading-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-item .customer-note {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.note-item .customer-note.important {
    background: #fef3c7;
    border-left: 2px solid #f59e0b;
}

body.dark-mode .note-item .customer-note.important {
    background: #78350f;
    border-left-color: #fbbf24;
}

.note-item .customer-note.normal {
    background: #f0fdf4;
    border-left: 2px solid #10b981;
}

body.dark-mode .note-item .customer-note.normal {
    background: #064e3b;
    border-left-color: #059669;
}

.note-item .note-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.note-item .note-text {
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 0.8rem;
}

.note-item .note-timestamp {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0.7;
}

.note-item .reply-display {
    background: #eff6ff;
    border-left: 2px solid #3b82f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

body.dark-mode .note-item .reply-display {
    background: #1e3a8a;
    border-left-color: #60a5fa;
}

.note-item .reply-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    resize: vertical;
    min-height: 60px;
    font-size: 0.8rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.note-item .reply-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-item .btn-edit-reply,
.note-item .btn-save-reply {
    padding: 0.375rem 0.75rem;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.note-item .btn-edit-reply {
    background: #3b82f6;
}

.note-item .btn-edit-reply:hover {
    background: #2563eb;
}

.note-item .btn-save-reply {
    background: #10b981;
}

.note-item .btn-save-reply:hover {
    background: #059669;
}

.note-item .btn-delete-note {
    padding: 0.375rem 0.625rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
}

.note-item .btn-delete-note:hover {
    background: #dc2626;
}

.note-item .no-note {
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.note-item .no-note-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Button Outline Style */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .btn-outline {
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== Pricing/Package Cards (goi.php) ===== */
.current-plan-banner {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border-radius: 12px;
}

.pricing-card {
    border-radius: 8px;
    position: relative;
}

.pricing-card.premium-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid #14b8a6;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.2), 0 10px 10px -5px rgba(20, 184, 166, 0.1);
}

body.dark-mode .pricing-card.premium-card {
    background: linear-gradient(135deg, #134e4a 0%, #115e59 100%);
}

.pricing-card.current {
    border: 2px solid #14b8a6;
}

body.dark-mode .pricing-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.dark-mode .pricing-card.current {
    border-color: #14b8a6;
}

.premium-ribbon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%);
}

.plan-badge {
    position: absolute;
    top: -18px;
    right: 16px;
    background: #14b8a6;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    z-index: 10;
}

.plan-badge.recommended {
    top: 16px;
    background: #10b981;
}

.plan-header h3 {
    font-weight: 600;
    color: var(--heading-color);
}

.plan-header h3.premium-title {
    color: #14b8a6;
    font-weight: 800;
}

.price-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.price-amount.premium-amount {
    color: #14b8a6;
    font-weight: 800;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features .feature-check {
    color: #10b981;
}

.plan-features .feature-cross {
    color: #ef4444;
}

.package-warning {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    margin-top: 12px;
}

.package-warning.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

body.dark-mode .package-warning.warning {
    background: #78350f;
    border-color: #fbbf24;
    color: #fef3c7;
}

.package-warning.error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

body.dark-mode .package-warning.error {
    background: #7f1d1d;
    border-color: #dc2626;
    color: #fee2e2;
}

.package-warning a,
.package-warning .warning-link {
    color: #14b8a6;
    font-weight: 600;
    text-decoration: underline;
}

body.dark-mode .package-warning a,
body.dark-mode .package-warning .warning-link {
    color: #5eead4;
}

.btn-disabled-current {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: not-allowed;
}

.btn-blocked {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e5e7eb;
    color: #9ca3af;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    font-weight: 600;
    font-size: 14px;
    cursor: not-allowed;
    opacity: 0.6;
}

body.dark-mode .btn-blocked {
    background: #374151;
    color: #6b7280;
    border-color: #4b5563;
}

.btn-premium {
    padding: 16px !important;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3), 0 2px 4px -1px rgba(20, 184, 166, 0.2);
}

body.dark-mode .btn-premium {
    box-shadow: 0 4px 6px -1px rgba(94, 234, 212, 0.3), 0 2px 4px -1px rgba(94, 234, 212, 0.2);
}

.package-upgrade-btn,
.package-replace-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.package-upgrade-btn:hover,
.package-replace-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -2px rgba(20, 184, 166, 0.4);
}

body.dark-mode .package-upgrade-btn:hover,
body.dark-mode .package-replace-btn:hover {
    box-shadow: 0 6px 8px -2px rgba(94, 234, 212, 0.4);
}

.premium-star-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

body.dark-mode .premium-star-icon {
    fill: #5eead4;
}

.modal-note {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

body.dark-mode .modal-note {
    color: #9ca3af;
}

/* Feature Banners */
.feature-banner {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-banner.warning {
    background: #fffbeb;
    border: 2px solid #fbbf24;
}

body.dark-mode .feature-banner.warning {
    background: #422006;
    border-color: #d97706;
}

.feature-banner.warning-gradient {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

body.dark-mode .feature-banner.warning-gradient {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #fbbf24;
}

.feature-banner.info {
    background: #dbeafe;
    border: 2px solid #60a5fa;
}

body.dark-mode .feature-banner.info {
    background: #1e3a8a;
    border-color: #60a5fa;
}

.feature-banner.success {
    background: #f0fdf4;
    border: 2px solid #86efac;
}

body.dark-mode .feature-banner.success {
    background: #14532d;
    border-color: #86efac;
}

.banner-icon {
    flex-shrink: 0;
}

.feature-banner.warning .banner-icon {
    color: #f59e0b;
}

.feature-banner.warning-gradient .banner-icon {
    color: #f59e0b;
}

.feature-banner.info .banner-icon {
    color: #2563eb;
}

body.dark-mode .feature-banner.info .banner-icon {
    color: #60a5fa;
}

.feature-banner.success .banner-icon {
    color: #16a34a;
}

body.dark-mode .feature-banner.success .banner-icon {
    color: #86efac;
}

.banner-content {
    flex: 1;
}

.banner-title {
    color: #92400e;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

body.dark-mode .feature-banner.warning .banner-title,
body.dark-mode .feature-banner.warning-gradient .banner-title {
    color: #fef3c7;
}

body.dark-mode .feature-banner.info .banner-title {
    color: #dbeafe;
}

.banner-text {
    margin: 0;
    font-size: 0.875rem;
}

.feature-banner.warning .banner-text {
    color: #78350f;
}

body.dark-mode .feature-banner.warning .banner-text {
    color: #fde68a;
}

.feature-banner.warning-gradient .banner-text {
    color: #78350f;
}

body.dark-mode .feature-banner.warning-gradient .banner-text {
    color: #fde68a;
}

.feature-banner.info .banner-text {
    color: #1e40af;
}

body.dark-mode .feature-banner.info .banner-text {
    color: #bfdbfe;
}

.feature-banner.success .banner-text {
    color: #166534;
}

body.dark-mode .feature-banner.success .banner-text {
    color: #bbf7d0;
}

.banner-subtext {
    margin-top: 0.5rem !important;
}

.banner-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.feature-banner.warning .banner-link {
    color: #92400e;
}

body.dark-mode .feature-banner.warning .banner-link {
    color: #fef3c7;
}

.feature-banner.warning-gradient .banner-link {
    color: #92400e;
}

body.dark-mode .feature-banner.warning-gradient .banner-link {
    color: #fef3c7;
}

.feature-banner.info .banner-link {
    color: #1e40af;
}

body.dark-mode .feature-banner.info .banner-link {
    color: #dbeafe;
}

.title-icon {
    vertical-align: middle;
    margin-right: 8px;
    color: var(--heading-color);
}

.btn-add-schedule svg {
    color: currentColor;
}

.mobile-quick-access svg {
    color: currentColor;
}

.schedule-info-item svg,
.btn-action svg {
    color: currentColor;
}

.btn-add-schedule:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-overlay {
    position: relative;
}

.demo-data-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed #f59e0b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

body.dark-mode .demo-data-banner {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #fbbf24;
}

.demo-data-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-data-text {
    color: #92400e;
    font-weight: 600;
    font-size: 15px;
}

body.dark-mode .demo-data-text {
    color: #fef3c7;
}

.demo-item {
    opacity: 0.7;
    position: relative;
    pointer-events: none;
}

.btn-package-action {
    width: 100%;
    padding: 12px;
    border: 2px solid #14b8a6;
    background: var(--bg-primary);
    color: #14b8a6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-package-action:hover {
    background: #14b8a6;
    color: white;
}
