/* Platform Admin Dashboard - Anthropic B&W Style */
:root {
    --anthropic-orange: #000000;
    --anthropic-blue: #000000;
    --anthropic-gray: #737373;
    --anthropic-light-gray: #f5f5f5;
    --anthropic-border: #e5e5e5;
    --anthropic-dark: #000000;
    --anthropic-success: #404040;
    --anthropic-warning: #737373;
    --anthropic-danger: #262626;
    --anthropic-info: #525252;
}

/* Base Styles */
body {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--anthropic-dark);
    margin: 0;
    padding: 0;
}

/* Layout Components */
.sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--anthropic-border);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    padding: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--anthropic-border);
}

.sidebar-nav {
    padding: 1rem 0;
}

.main-content {
    margin-left: 280px;
    padding: 0;
}

.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--anthropic-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-area {
    padding: 2rem;
}

/* Navigation Styles */
.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-link:hover {
    background-color: var(--anthropic-light-gray);
    color: var(--anthropic-blue);
    text-decoration: none;
}

.nav-link.active {
    background-color: var(--anthropic-blue);
    color: white;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Card Components */
.metric-card {
    background: #ffffff;
    border: 1px solid var(--anthropic-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    height: 100%;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--anthropic-blue);
    margin: 0.5rem 0;
}

.metric-label {
    color: var(--anthropic-gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--anthropic-success);
}

.metric-change.negative {
    color: var(--anthropic-danger);
}

/* Chart Container */
.chart-container {
    background: #ffffff;
    border: 1px solid var(--anthropic-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 400px;
}

.chart-container h6 {
    margin-bottom: 1rem;
    color: var(--anthropic-dark);
    font-weight: 600;
}

/* Table Styles */
.table-container {
    background: #ffffff;
    border: 1px solid var(--anthropic-border);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    background-color: var(--anthropic-light-gray);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--anthropic-border);
    font-weight: 600;
}

.table {
    margin: 0;
}

.table th {
    border-top: none;
    border-bottom: 1px solid var(--anthropic-border);
    font-weight: 600;
    color: var(--anthropic-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
}

.table td {
    border-top: 1px solid var(--anthropic-border);
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Button Styles */
.btn-primary {
    background-color: var(--anthropic-blue);
    border-color: var(--anthropic-blue);
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: var(--anthropic-blue);
    border-color: var(--anthropic-blue);
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--anthropic-blue);
    border-color: var(--anthropic-blue);
    color: white;
}

/* Form Elements */
.search-box {
    background-color: var(--anthropic-light-gray);
    border: 1px solid var(--anthropic-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.search-box:focus {
    outline: none;
    border-color: var(--anthropic-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Alert Styles */
.alert-custom {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.alert-info {
    background-color: #e7f3ff;
    color: var(--anthropic-blue);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--anthropic-light-gray);
    border-radius: 50%;
    border-top-color: var(--anthropic-blue);
    animation: spin 1s ease-in-out infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, var(--anthropic-light-gray) 25%, transparent 50%, var(--anthropic-light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .content-area {
        padding: 1rem;
    }

    .top-bar {
        padding: 1rem;
    }

    .search-box {
        width: 200px;
    }

    .metric-value {
        font-size: 2rem;
    }

    .chart-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }
}

/* Utility Classes */
.text-anthropic-blue { color: var(--anthropic-blue); }
.text-anthropic-gray { color: var(--anthropic-gray); }
.bg-anthropic-blue { background-color: var(--anthropic-blue); }
.bg-anthropic-light { background-color: var(--anthropic-light-gray); }
.border-anthropic { border-color: var(--anthropic-border); }

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
