/* =============================================
   ADVERTISER PORTAL STYLES
   ============================================= */

:root {
    --primary: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #6ba3e8;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
}

/* =============================================
   AUTH SCREEN
   ============================================= */

#auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
    max-width: 150px;
    height: auto;
}

.auth-header h3 {
    color: #212529;
    margin-bottom: 8px;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border: none;
    border-bottom: 3px solid var(--primary);
    background: transparent;
}

/* =============================================
   DASHBOARD SCREEN
   ============================================= */

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
    border-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
}

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

/* Cards */
.card {
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 28px;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: none;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border-bottom: none;
}

.card-body {
    padding: 28px;
}

/* Creative Grid */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.creative-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.creative-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.creative-preview {
    border-radius: 8px 8px 0 0;
}

.creative-info {
    padding: 12px;
    background: white;
}

.creative-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

/* Suggested Text */
.suggested-text-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.suggested-text-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Sections */
section {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 24px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .creative-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

/* API Integration Styles */
pre {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

pre code {
    color: #212529;
    font-size: 13px;
    line-height: 1.6;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom: 3px solid var(--primary);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

code:not(pre code) {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
    font-size: 90%;
}

.border-primary {
    border-left: 4px solid var(--primary) !important;
}

.border-success {
    border-left: 4px solid #198754 !important;
}

.border-warning {
    border-left: 4px solid #ffc107 !important;
}

/* IP Whitelisting */
.list-group-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px !important;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-color: var(--primary);
    transform: translateX(4px);
}

.list-group-item code {
    font-weight: 600;
    font-size: 14px;
}

.bg-warning.card-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #000;
}

