/* Shared Admin Dashboard Styles */
:root {
    --bg: #ffffff;
    --ink: #1a1a1a;
    --surface: #ffffff;
    --link: #2563eb;
    --darkBand: #1f2937;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    color: var(--ink);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Navigation Header */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}

.logo img {
    width: 36px;
    height: 36px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--link);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Admin Header */
.admin-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
}

.header-icon.starter { background: #2563eb; }
.header-icon.standard { background: #16a34a; }
.header-icon.premium { background: #9333ea; }

.header-left h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.header-left p {
    color: #6b7280;
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-link {
    color: #2563eb;
    background: transparent;
}

.btn-link:hover {
    color: #1d4ed8;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 250px);
}

.welcome {
    margin-bottom: 2rem;
}

.welcome h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.welcome p {
    color: #6b7280;
}

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

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

.stat-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon.yellow { background: #fef3c7; color: #d97706; }

.stat-content p:first-child {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-content p:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

/* Two Column Grid */
.two-col {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.action-item.blue { background: #eff6ff; color: #1e40af; }
.action-item.green { background: #f0fdf4; color: #166534; }
.action-item.purple { background: #faf5ff; color: #7e22ce; }

.action-item:hover {
    filter: brightness(0.95);
}

.action-item span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.activity-content p:first-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.activity-content p:nth-child(2) {
    font-size: 0.875rem;
    color: #6b7280;
}

.activity-content p:last-child {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    display: block;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0 0.75rem;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.875rem;
}
