/* DriveCourse ERP — Custom Styles */

:root {
    --dc-primary: #1e3a8a;
    --dc-primary-dark: #0f172a;
    --dc-accent: #f59e0b;
    --dc-success: #16a34a;
    --dc-danger: #dc2626;
    --dc-bg: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dc-bg);
}

/* Logo gradient text */
.text-brand {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Stat card */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--dc-primary);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}
.stat-card .stat-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn-primary {
    background: var(--dc-primary);
    border-color: var(--dc-primary);
}
.btn-primary:hover {
    background: var(--dc-primary-dark);
    border-color: var(--dc-primary-dark);
}

/* Login page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 100%;
}

/* Public landing page */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Marquee banner */
.banner-marquee {
    background: var(--dc-accent);
    color: #0f172a;
    padding: 0.75rem 0;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}
.banner-marquee .marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-right: 50px;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Feature cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--dc-primary);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* Badges */
.badge-status-ACTIVE { background: #16a34a; color: white; }
.badge-status-INACTIVE { background: #dc2626; color: white; }
.badge-status-SCHEDULED { background: #2563eb; color: white; }
.badge-status-COMPLETED { background: #16a34a; color: white; }
.badge-status-CANCELLED { background: #dc2626; color: white; }
.badge-status-PAID { background: #16a34a; color: white; }
.badge-status-PENDING { background: #f59e0b; color: white; }
.badge-status-ISSUED { background: #2563eb; color: white; }
.badge-status-EXPIRED { background: #dc2626; color: white; }

/* Tables */
.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
}

/* Action buttons in tables */
.action-btns .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Custom file upload */
.custom-file-upload {
    border: 1px solid #ced4da;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
}

/* Print-friendly */
@media print {
    .navbar, footer, .no-print { display: none !important; }
    body { background: white; }
}
