/* Sistem Pelaporan ZIS - Custom Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: #333;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.page-header {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #229954;
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #eee;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.summary-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--success-color);
}

.summary-box h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.summary-stat {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.summary-stat label {
    display: block;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.summary-stat .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.alert {
    border-radius: 5px;
    border: none;
    padding: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--secondary-color);
}

.dynamic-row {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.remove-row-btn {
    margin-top: 25px;
}

.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.print-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.print-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.print-header p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.print-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
}

.print-info-item {
    font-size: 0.95rem;
}

.print-info-label {
    font-weight: bold;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.4rem;
    }

    .summary-item {
        grid-template-columns: 1fr;
    }

    .print-info {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 10px;
    }
}

@media print {
    body {
        background: white;
    }

    .navbar,
    .footer,
    .btn-group,
    .btn {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .table {
        font-size: 0.9rem;
    }
}
