/**
 * Dashboard Styles
 */

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}

.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.dashboard-logo a {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.dashboard-logo img {
    max-height: 40px;
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

.dashboard-nav ul {
    list-style: none;
}

.dashboard-nav li {
    margin-bottom: 5px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #64748b;
    transition: all 0.2s;
}

.dashboard-nav a:hover {
    background: #f8fafc;
    color: #7587c3;
    text-decoration: none;
}

.dashboard-nav li.active a {
    background: #7587c3;
    color: #ffffff !important;
    font-weight: 600;
    border-left: 3px solid #6484fd;
}

.dashboard-nav li.active a .icon,
.dashboard-nav li.active a .label {
    color: #ffffff !important;
}

.dashboard-nav .icon {
    font-size: 20px;
    margin-right: 12px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 250px;
    padding: 24px;
    background: #f8fafc;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.page-title p {
    color: #64748b;
    margin: 0;
}

.breadcrumb {
    color: #64748b;
    font-size: 14px;
    margin-top: 8px;
}

/* Quick Actions */
.quick-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.brand-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.brand-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brand-logo {
    margin-bottom: 16px;
}

.brand-logo img {
    max-height: 60px;
}

.brand-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.brand-website {
    color: #64748b;
    font-size: 14px;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.user-avatar img {
    border-radius: 50%;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 1000;
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.user-menu-links {
    list-style: none;
    padding: 8px 0;
}

.user-menu-links li a {
    display: block;
    padding: 12px 16px;
    color: #1e293b;
}

.user-menu-links li a:hover {
    background: #f8fafc;
    text-decoration: none;
}

/* License Badge */
.license-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.license-monetise {
    background: #dbeafe;
    color: #1e40af;
}

.license-maximise {
    background: #fef3c7;
    color: #92400e;
}

.license-enterprise {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-draft {
    background: #f1f5f9;
    color: #475569;
}

.status-published {
    background: #dbeafe;
    color: #1e40af;
}

.status-sent {
    background: #ddd6fe;
    color: #6b21a8;
}

.status-viewed {
    background: #fef3c7;
    color: #92400e;
}

.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

/* Tables */
.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

