/* Buku Tamu Digital - Custom Styles */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

main {
    flex: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Stats cards */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Form */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Table */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.925rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04);
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
}

/* Search filter box */
.filter-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 16px;
    color: #fff;
    padding: 2.5rem 2rem;
}

.hero h1 {
    font-weight: 700;
}

/* Login card */
.login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
}

/* Responsive table */
.table-responsive {
    border-radius: 0 0 12px 12px;
}

/* Action buttons */
.btn-action {
    padding: 0.3rem 0.55rem;
    font-size: 0.85rem;
}

/* Print styles */
@media print {
    .navbar, .footer, .no-print, footer {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3.5rem;
    opacity: 0.4;
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
}

/* Signature pad */
.signature-pad-wrapper {
    position: relative;
    touch-action: none;
    background: #fff;
    max-width: 100%;
    overflow: hidden;
}

.signature-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px;
    cursor: crosshair;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23dee2e6' font-size='14' font-family='sans-serif'%3ETanda Tangan%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.signature-canvas.has-signature {
    background-image: none;
}

.signature-thumb {
    max-width: 120px;
    max-height: 50px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.signature-thumb-lg {
    max-width: 280px;
    max-height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}
