/* Custom Styles for Kausan DAMS v2 */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color:  #dc3545;
    --info-color:    #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.navbar-brand { font-weight: bold; font-size: 1.3rem; }

.form-label { font-weight: 600; color: #495057; }

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.badge { font-weight: 500; padding: 0.4em 0.6em; }

.btn { font-weight: 500; transition: all 0.2s; }

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table { background-color: white; }

.table thead { font-weight: 600; }

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.photo-preview-container img {
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    max-width: 150px;
    max-height: 150px;
    margin: 5px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
}

.photo-preview-container img:hover { transform: scale(1.05); }

.alert { border-left: 4px solid; }
.alert-info    { border-left-color: var(--info-color); }
.alert-warning { border-left-color: var(--warning-color); }
.alert-success { border-left-color: var(--success-color); }
.alert-danger  { border-left-color: var(--danger-color); }

.modal-body img { max-width: 100%; height: auto; }

footer { margin-top: auto; border-top: 1px solid #dee2e6; }

/* Mobile */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.1rem; }
    .card         { margin-bottom: 1rem; }
    .table-responsive { font-size: 0.9rem; }
}

/* Print */
@media print {
    .navbar, .btn, footer, .no-print { display: none !important; }
    .card { border: 1px solid #000; box-shadow: none; page-break-inside: avoid; }
    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body { background-color: white; }
    .badge {
        border: 1px solid #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    img { max-width: 100%; page-break-inside: avoid; }
}
