/* Modern Professional Theme - Baby Blue */

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

:root {
    --primary-blue: #4A90E2;
    --baby-blue: #E3F2FD;
    --light-blue: #BBDEFB;
    --dark-blue: #1976D2;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.nav {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background: var(--baby-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav a:active {
    transform: translateY(0);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid var(--success); }
.alert-danger { background: #FFEBEE; color: #C62828; border-left: 4px solid var(--danger); }
.alert-warning { background: #FFF3E0; color: #E65100; border-left: 4px solid var(--warning); }
.alert-info { background: #E1F5FE; color: #01579B; border-left: 4px solid var(--primary-blue); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card h2 {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--baby-blue);
    height: 50px;
    border-radius: 25px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: inline-block;
    padding: 1.25rem 2rem;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
}

.action-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.action-btn.success {
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: var(--white);
}

.action-btn.success:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Loading state for buttons */
.action-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Table */
.listings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.listings-table thead {
    background: var(--baby-blue);
}

.listings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
}

.listings-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-blue);
}

.listings-table tbody tr {
    transition: background 0.2s ease;
}

.listings-table tbody tr:hover {
    background: var(--baby-blue);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free { background: #E0E0E0; color: #616161; }
.badge-pro { background: #BBDEFB; color: #1565C0; }
.badge-business { background: #FFE082; color: #F57F17; }
.badge-draft { background: #FFF9C4; color: #F57F17; }
.badge-published { background: #C8E6C9; color: #2E7D32; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left, .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.action-btn:focus, .nav a:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Smooth transitions for everything */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
