/* ==========================================================================
   Tender Terbaru - Custom Styles
   ========================================================================== */

:root {
    --primary: #0d6efd;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #212529;
}

/* General */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

a {
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: #0a58ca;
}

/* Navbar */
.navbar-brand {
    font-size: 1.3rem;
}

.dropdown-menu-scrollable {
    max-height: 400px;
    overflow-y: auto;
}

/* Cards */
.card {
    border: none;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card.border-start {
    border-left-width: 4px !important;
}

/* Countdown Timer */
.countdown-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
}

#timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Tables */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
}

.pagination .active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* AdSense Placeholder */
.adsense-placeholder {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: #adb5bd;
    font-size: 0.875rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Search Highlight */
mark {
    background-color: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* DataTables Custom */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* Print */
@media print {
    .navbar,
    .footer,
    .adsense-placeholder,
    .btn {
        display: none !important;
    }
}