/* SpijkenisseApp CRM - Orange Theme v2 */

:root {
    --primary: #ff6b00;
    --primary-dark: #e05f00;
    --primary-light: #ff8533;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
}

* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f5f5f5 !important;
    min-height: 100vh;
}

/* NAVBAR - ORANJE */
.navbar {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
    box-shadow: 0 2px 15px rgba(255, 107, 0, 0.4);
    padding: 0.75rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: white !important;
}
.navbar-brand img {
    height: 36px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}
.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    background: white;
    overflow: hidden;
}
.card-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}
.card-body {
    padding: 1.25rem;
}
.card-footer {
    background: white;
    border-top: 1px solid #eee;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}
.stat-card-primary .stat-icon { background: rgba(255,107,0,0.15); color: #ff6b00; }
.stat-card-success .stat-icon { background: rgba(39,174,96,0.15); color: #27ae60; }
.stat-card-info .stat-icon { background: rgba(52,152,219,0.15); color: #3498db; }
.stat-card-warning .stat-icon { background: rgba(241,196,15,0.15); color: #d68910; }
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* BUTTONS - ORANJE */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border: none;
}
.btn-primary {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
    color: white !important;
    border: none !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #ff8533 0%, #ff6b00 100%) !important;
    box-shadow: 0 4px 15px rgba(255,107,0,0.4);
}
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%) !important;
    border: none !important;
}
.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%) !important;
    color: white !important;
    border: none !important;
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
}
.btn-dark {
    background: linear-gradient(135deg, #34495e 0%, #1a1a1a 100%) !important;
    border: none !important;
}
.btn-outline-danger {
    border: 2px solid #e74c3c !important;
    color: #e74c3c !important;
    background: transparent !important;
}
.btn-outline-danger:hover {
    background: #e74c3c !important;
    color: white !important;
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: white !important;
    background: transparent !important;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
}
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.6rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: #ff6b00 !important;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15) !important;
}
.form-control-lg {
    padding: 0.85rem 1.25rem;
    font-size: 1.1rem;
}
.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.form-check-input:checked {
    background-color: #ff6b00 !important;
    border-color: #ff6b00 !important;
}
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
}
.input-group-text {
    border: 2px solid #e0e0e0;
    border-right: none;
    background: #f8f9fa;
    color: #ff6b00;
}

/* TABLES - ORANJE HEADER */
.table {
    margin-bottom: 0;
}
.table thead th {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.85rem 1rem;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}
.table tbody tr:hover {
    background: rgba(255,107,0,0.05) !important;
}
.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border: none;
}

/* Row States */
.row-klant {
    background: rgba(39,174,96,0.1) !important;
    border-left: 4px solid #27ae60 !important;
}
.row-urgent {
    background: rgba(255,107,0,0.1) !important;
    border-left: 4px solid #ff6b00 !important;
}
.row-optout {
    background: rgba(231,76,60,0.1) !important;
    border-left: 4px solid #e74c3c !important;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}
.badge.bg-primary {
    background: #ff6b00 !important;
}
.badge.bg-success {
    background: #27ae60 !important;
}
.badge.bg-warning {
    background: #f1c40f !important;
    color: #5d4e00 !important;
}
.badge.bg-danger {
    background: #e74c3c !important;
}
.badge.bg-info {
    background: #3498db !important;
}

/* Section Headers - ORANJE */
.section-header-primary {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
    color: white !important;
}
.section-header-lead {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%) !important;
    color: white !important;
}
.section-header-client {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%) !important;
    color: white !important;
}
.section-header-money {
    background: linear-gradient(135deg, #27ae60 0%, #1abc9c 100%) !important;
    color: white !important;
}
.section-header-dark {
    background: linear-gradient(135deg, #34495e 0%, #1a1a1a 100%) !important;
    color: white !important;
}

/* Alerts */
.alert-success {
    background: rgba(39,174,96,0.15) !important;
    color: #1e8449;
    border-left: 4px solid #27ae60;
    border-radius: 8px;
}
.alert-danger {
    background: rgba(231,76,60,0.15) !important;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

/* Money Display */
.money-display {
    background: linear-gradient(135deg, #27ae60 0%, #1abc9c 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}
.money-display .amount {
    font-size: 2.25rem;
    font-weight: 700;
}
.money-display .label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cost Breakdown */
.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e0e0e0;
}
.cost-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #1a1a1a;
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Log Entries - ORANJE */
.log-entry {
    background: white;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 4px solid #ff6b00 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.log-meta {
    font-size: 0.8rem;
    color: #6c757d;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* Login Page - ORANJE */
.login-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}
.login-header {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
    padding: 2.5rem;
    text-align: center;
}
.login-header img {
    height: 60px;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}
.login-body {
    padding: 2rem;
    background: white;
}
.btn-login {
    background: #ff6b00 !important;
    background: linear-gradient(135deg, #ff6b00 0%, #e05f00 100%) !important;
}

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:hover {
    background: rgba(255,107,0,0.1);
}
.autocomplete-item.exists {
    background: rgba(231,76,60,0.1);
}
.autocomplete-item.exists .name::after {
    content: ' (bestaat al)';
    color: #e74c3c;
    font-size: 0.85rem;
}

/* Pagination - ORANJE */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #2c3e50;
    font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: #ff6b00 !important;
    color: white !important;
}
.pagination .page-link:hover {
    background: rgba(255,107,0,0.1);
    color: #ff6b00;
}

/* Override Bootstrap primary */
.bg-primary {
    background-color: #ff6b00 !important;
}
.text-primary {
    color: #ff6b00 !important;
}
.border-primary {
    border-color: #ff6b00 !important;
}

@media (max-width: 991px) {
    .sticky-top { position: relative !important; }
    .stat-card { margin-bottom: 0.5rem; }
}

/* Pakket Achtergrondkleuren - Alleen achter bedrijfsnaam kolom */
/* Body achtergrond voor edit pagina - zeer subtiel */
body.pakket-bg-marketing {
    background: linear-gradient(to right, rgba(255, 220, 180, 0.08) 0%, rgba(255, 255, 255, 0) 40%) !important;
}

body.pakket-bg-spotlight {
    background: linear-gradient(to right, rgba(255, 200, 140, 0.10) 0%, rgba(255, 255, 255, 0) 40%) !important;
}

body.pakket-bg-hero {
    background: linear-gradient(to right, rgba(255, 180, 100, 0.12) 0%, rgba(255, 255, 255, 0) 40%) !important;
}

body.pakket-bg-allin {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.08) 0%, rgba(255, 255, 255, 0) 40%) !important;
}

body.pakket-bg-politiek {
    background: linear-gradient(to right, rgba(173, 216, 230, 0.10) 0%, rgba(255, 255, 255, 0) 40%) !important;
}

/* Voor eerste kolom (bedrijfsnaam) in tabel rijen */
tr.pakket-bg-marketing td:first-child {
    background: linear-gradient(to right, rgba(255, 220, 180, 0.4) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

tr.pakket-bg-spotlight td:first-child {
    background: linear-gradient(to right, rgba(255, 200, 140, 0.45) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

tr.pakket-bg-hero td:first-child {
    background: linear-gradient(to right, rgba(255, 180, 100, 0.5) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

tr.pakket-bg-allin td:first-child {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.35) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

tr.pakket-bg-politiek td:first-child {
    background: linear-gradient(to right, rgba(173, 216, 230, 0.4) 0%, rgba(255, 255, 255, 1) 100%) !important;
}

/* Contract verloop waarschuwingen */
@keyframes blink-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.badge-contract-verloopt {
    animation: blink-red 1.2s ease-in-out infinite;
    background-color: #dc3545 !important;
    color: #fff !important;
}
.badge-contract-verlopen {
    background-color: #6c1a21 !important;
    color: #fff !important;
}
