* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1a1a2e;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-icon { font-size: 28px; }
.logo-text { font-size: 20px; font-weight: 700; }

.nav { margin-top: 20px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active { border-left: 3px solid #4f46e5; }
.nav-icon { font-size: 18px; }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header h1 { font-size: 24px; font-weight: 600; }

.db-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: #fef3c7;
    color: #92400e;
}

.db-status.connected { background: #d1fae5; color: #065f46; }

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon { font-size: 36px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* Cards */
.cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.chart-card canvas {
    max-height: 250px;
}

/* Retention Stats */
.retention-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.retention-stat {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.retention-stat .value {
    font-size: 28px;
    font-weight: 700;
    color: #6366f1;
}

.retention-stat .label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.retention-stat.highlight .value {
    color: #10b981;
}

/* Platform Bars */
.platform-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.platform-bar .label { width: 80px; font-size: 14px; }
.platform-bar .bar-container { flex: 1; height: 24px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.platform-bar .bar { height: 100%; border-radius: 4px; transition: width 0.5s; }
.platform-bar .bar.android { background: #22c55e; }
.platform-bar .bar.ios { background: #3b82f6; }
.platform-bar .count { width: 60px; text-align: right; font-size: 14px; font-weight: 500; }

/* Activity */
.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child { border-bottom: none; }
.activity-label { color: #6b7280; }
.activity-value { font-weight: 600; }

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input, .filter-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.search-input { flex: 1; max-width: 400px; }
.search-input:focus, .filter-select:focus { outline: none; border-color: #4f46e5; }

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; }
.data-table th { background: #f9fafb; font-weight: 600; font-size: 13px; color: #6b7280; text-transform: uppercase; }
.data-table td { border-top: 1px solid #e5e7eb; font-size: 14px; }
.data-table tbody tr:hover { background: #f9fafb; cursor: pointer; }

/* User cell */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Status badges */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge.android { background: #dcfce7; color: #166534; }
.badge.ios { background: #dbeafe; color: #1e40af; }
.badge.shopper { background: #fef3c7; color: #92400e; }
.badge.customer { background: #e0e7ff; color: #3730a3; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.accepted { background: #dbeafe; color: #1e40af; }
.badge.shopping { background: #e0e7ff; color: #3730a3; }
.badge.delivering { background: #cffafe; color: #0e7490; }
.badge.delivered { background: #dcfce7; color: #166534; }
.badge.cancelled { background: #fee2e2; color: #991b1b; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pagination button:hover:not(:disabled) { background: #f3f4f6; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination .page-info { font-size: 14px; color: #6b7280; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 { font-size: 18px; }

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover { background: #e5e7eb; }

.modal-content {
    padding: 24px;
    overflow-y: auto;
}

.detail-section { margin-bottom: 24px; }
.detail-section h4 { font-size: 14px; color: #6b7280; margin-bottom: 12px; text-transform: uppercase; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item { padding: 12px; background: #f9fafb; border-radius: 8px; }
.detail-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.detail-value { font-size: 14px; font-weight: 500; }

/* Delete button */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #fee2e2;
}

/* Loading */
.loading { text-align: center; padding: 40px; color: #6b7280; }

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .cards-row { grid-template-columns: 1fr; }
    .charts-row { grid-template-columns: 1fr; }
    .retention-stats { grid-template-columns: 1fr; }
    .notification-form-container { grid-template-columns: 1fr; }
}

/* Notifications Page */
.notification-form-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    margin-bottom: 24px;
}

.notification-form {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notification-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.text-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.recipient-toggle {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    background: #f9fafb;
}

.toggle-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.user-search-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
}

.user-search-results.show {
    display: block;
}

.user-result-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-result-item:hover {
    background: #f3f4f6;
}

.user-result-item .user-name {
    font-weight: 500;
}

.user-result-item .user-email {
    font-size: 12px;
    color: #6b7280;
}

.selected-users {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selected-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #e0e7ff;
    border-radius: 20px;
    font-size: 13px;
}

.selected-user .remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    color: #6366f1;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #6366f1;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5558dd;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.notification-result {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.notification-result.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.notification-result.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Phone Preview */
.notification-preview {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notification-preview h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

.phone-preview {
    background: #1f2937;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 20px;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #111827;
    border-radius: 12px;
    margin: 0 auto 16px;
}

.phone-notification {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-app {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2px;
}

.notification-body {
    font-size: 13px;
    color: #4b5563;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.recipient-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.recipient-stats .stat-item {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.recipient-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.recipient-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
    margin-top: 4px;
}

/* Notification History */
.notification-history {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notification-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item .history-title {
    font-weight: 500;
}

.history-item .history-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 24px;
}

/* Store Management */
.store-management-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.store-selector {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.store-selector h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.store-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.store-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.store-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #1a1a2e;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.departments-header,
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.departments-header h3,
.products-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.products-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.products-filters .search-input,
.products-filters .filter-select {
    min-width: 200px;
}

.progress-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.progress-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.progress-item {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.progress-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.progress-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.progress-bar-container {
    position: relative;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 12px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-weight: 600;
    color: #1a1a2e;
    font-size: 12px;
}

.edit-btn,
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: transform 0.2s;
}

.edit-btn:hover,
.delete-btn:hover {
    transform: scale(1.2);
}

/* Auth Section */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.auth-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.auth-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.auth-card p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-card .form-group {
    margin-bottom: 16px;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.auth-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-card input:focus {
    outline: none;
    border-color: #6366f1;
}

.auth-card button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
}

.auth-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #ecfdf5;
    border-radius: 8px;
    border: 1px solid #10b981;
}

#authStatusText {
    font-weight: 500;
    color: #065f46;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Railway Token Section */
.railway-token-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.railway-token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.railway-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #fef2f2;
    color: #ef4444;
}

.railway-status.connected {
    background: #ecfdf5;
    color: #10b981;
}

.railway-token-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.railway-token-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.railway-token-input input:focus {
    outline: none;
    border-color: #6366f1;
}

.railway-help {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.railway-help a {
    color: #6366f1;
}

/* Catalog Update Section */
.catalog-update-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.catalog-update-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-description {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 14px;
}

.catalog-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-status-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.catalog-status-card:hover {
    border-color: #6366f1;
}

.catalog-status-card.updating {
    border-color: #f59e0b;
    background: #fffbeb;
}

.catalog-status-card.success {
    border-color: #10b981;
    background: #ecfdf5;
}

.catalog-status-card.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.store-card-name {
    font-size: 18px;
    font-weight: 600;
}

.store-card-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.store-card-status.fresh {
    background: #d1fae5;
    color: #065f46;
}

.store-card-status.stale {
    background: #fef3c7;
    color: #92400e;
}

.store-card-status.updating {
    background: #fef3c7;
    color: #92400e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.store-card-stats {
    font-size: 13px;
    color: #6b7280;
}

.store-card-stats div {
    margin-bottom: 4px;
}

.store-card-stats strong {
    color: #1f2937;
}

.store-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.store-update-btn {
    width: 100%;
    padding: 8px 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.store-update-btn:hover {
    background: #5558dd;
}

.store-update-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.update-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.update-progress-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
}

.update-progress-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.current-update-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

#currentUpdateStore {
    font-weight: 600;
    color: #6366f1;
}

#currentUpdateStatus {
    color: #6b7280;
}

.progress-bar-container.large {
    height: 32px;
    margin-bottom: 12px;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.update-log {
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    background: #1f2937;
    color: #d1d5db;
    padding: 12px;
    border-radius: 8px;
}

.update-log .log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #374151;
}

.update-log .log-entry:last-child {
    border-bottom: none;
}

.update-log .log-time {
    color: #9ca3af;
    margin-right: 8px;
}

.update-log .log-success {
    color: #10b981;
}

.update-log .log-error {
    color: #ef4444;
}

.update-log .log-info {
    color: #60a5fa;
}

.store-details-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.store-details-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.store-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.store-stat-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.store-stat-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-stat-card .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.store-stat-card .stat-row:last-child {
    border-bottom: none;
}

.store-stat-card .stat-label {
    color: #6b7280;
}

.store-stat-card .stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.login-logo-icon {
    font-size: 40px;
}

.login-logo h1 {
    font-size: 28px;
    color: #1a1a2e;
    margin: 0;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.login-error.show {
    display: block;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #4338ca;
}

.login-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Header logout */
.admin-email {
    color: #6b7280;
    font-size: 14px;
    margin-right: 12px;
}

.logout-btn {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #dc2626;
}
