/* ============================================================
   NURSERY & REKLAMASI - STYLE SHEET
   Version: 1.6
   ============================================================ */

:root {
    --primary-color: #2e7d32;
    --secondary-color: #66bb6a;
    --accent-color: #ff8f00;
    --dark-green: #1b5e20;
    --danger-red: #c62828;
}

body {
    background-color: #f0f4f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.version-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.card-dashboard {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-card {
    background: linear-gradient(135deg, #fff, #f1f8e9);
    border-left: 5px solid var(--primary-color);
}

.stat-card.danger {
    border-left-color: var(--danger-red);
    background: linear-gradient(135deg, #fff, #ffebee);
}

.stat-card.warning {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fff3e0);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.85;
}

.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 10px;
    font-size: 0.85rem;
    vertical-align: middle;
    text-align: center;
}

.table tbody tr:hover {
    background-color: #f1f8e9;
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.btn-action {
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #ffc107;
    border: none;
    color: #000;
}

.btn-edit:hover {
    background-color: #ffb300;
    transform: scale(1.05);
}

.btn-delete {
    background-color: #ef5350;
    border: none;
    color: white;
}

.btn-delete:hover {
    background-color: #e53935;
    transform: scale(1.05);
}

.form-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.2);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), #388e3c);
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.header-title {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid var(--primary-color);
}

.header-title h2 {
    color: var(--dark-green);
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-title h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.total-row {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important;
    font-weight: bold;
}

.total-row td {
    color: var(--dark-green);
    font-size: 0.95rem;
}

.badge-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.footer-custom {
    background: var(--dark-green);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.periode-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 10px 10px 0 0;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), #388e3c);
    color: white;
}

.nav-tabs {
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    background: white;
    border-radius: 0 0 15px 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    color: #c8e6c9;
    margin-bottom: 15px;
}

.pic-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.changelog-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    font-size: 0.85rem;
}

.changelog-section h6 {
    color: var(--dark-green);
    font-weight: bold;
}

/* ===== STYLE KHUSUS UNTUK PDF ===== */
.pdf-page {
    padding: 10mm 10mm;
    background: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 10pt;
    line-height: 1.3;
}

.pdf-header {
    display: flex;
    align-items: center;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.pdf-logo {
    width: 70px;
    height: auto;
    margin-right: 15px;
}

.pdf-title-right {
    flex-grow: 1;
    text-align: right;
    font-size: 16pt;
    font-weight: bold;
    color: #1b5e20;
}

.pdf-judul {
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    margin: 6px 0;
}

.pdf-pt {
    text-align: center;
    font-size: 12pt;
    margin-bottom: 10px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #999;
    padding: 3px 3px;
    text-align: center;
    vertical-align: middle;
}

.pdf-table th {
    background-color: #2e7d32;
    color: white;
    font-weight: bold;
}

.pdf-table .total-row {
    background-color: #e8f5e9;
    font-weight: bold;
}

.pdf-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 8pt;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 6px;
}

.pdf-status {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    color: white;
    font-size: 8pt;
}

.pdf-status.onprogress { background: #28a745; }
.pdf-status.terhenti { background: #dc3545; }
.pdf-status.selesai { background: #007bff; }
.pdf-status.default { background: #ffc107; color: #000; }

.pdf-pic {
    background: #e3f2fd;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 8pt;
}

.pdf-section-title {
    font-size: 13pt;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #1b5e20;
    text-align: center;
}

.pdf-chart-container {
    text-align: center;
    margin: 15px 0;
}

.pdf-chart-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== GALERI / MODAL ===== */
.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.2s;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.file-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fafafa;
}

.file-item .file-info {
    flex: 1;
}

.file-item .file-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.file-item .file-info .size {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-item .btn-del-file {
    color: #dc3545;
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.file-item .btn-del-file:hover {
    color: #a71d2a;
}

.file-preview-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.file-preview-pdf {
    width: 100%;
    height: 500px;
    border: none;
}

.modal-body .file-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Filter global */
.filter-global {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.filter-global label {
    font-weight: 600;
    color: var(--dark-green);
}

/* Grafik */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.chart-container canvas {
    max-height: 300px;
}