/* custom-theme.css: Lightweight UI polish for ArtigorBackend */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8fafc;
    color: #222;
}

.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.table th {
    background: #e3e8ef;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #d1d5db;
}

.table td {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.btn-primary, .btn-success, .btn-info {
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-control {
    border-radius: 6px;
    border-color: #d1d5db;
    box-shadow: none;
}

input[type="text"], input[type="email"], input[type="password"], select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
}

label {
    font-weight: 500;
    color: #374151;
}

/* Add subtle hover for table rows */
.table tbody tr:hover {
    background: #f1f5f9;
}

/* Add spacing to modal footer */
.modal-footer {
    padding-top: 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .table {
        font-size: 0.95em;
    }
    .modal-content {
        padding: 0.5rem;
    }
}

/* Search & action area polish (compact) */
.search-panel {
    background: transparent;
    padding: 0.25rem;
    border-radius: 6px;
    border: 1px solid #f8f9fc;
}
.search-input .input-group-text {
    border-right: 0;
    background: transparent;
    padding: .375rem .5rem;
}
.search-input .form-control {
    border-left: 0;
    padding: .375rem .5rem;
}
.search-input .btn-outline-primary.btn-sm {
    padding: .35rem .6rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.search-input .form-control.form-control-sm, .search-input .search-btn {
    height: calc(1.5em + .75rem);
}
.search-input .form-control.form-control-sm { padding: .35rem .5rem; }
.search-btn { border-radius: 0 .375rem .375rem 0; }

.action-buttons { gap: .5rem; }
.action-buttons .btn { border-radius: 6px; padding: .35rem .6rem; font-size: .9rem; white-space: nowrap; }
.action-buttons .btn-danger { padding: .35rem .6rem; }
.action-buttons .form-select { min-width: 120px; height: calc(1.5em + .75rem); margin-left: .35rem; color: #222; background: #fff; }
.action-buttons .form-select option { color: #222; }

.pagination-container {
    padding: .5rem 0;
}
.pagination-container .pagination-summary { flex: 0 0 auto; }
.pagination-container .pagination-center { flex: 1 1 auto; display:flex; justify-content:center; }
.pagination-container .jump-form { flex: 0 0 auto; }
@media (max-width: 576px) {
    .pagination-container .pagination-center { order: 3; width:100%; justify-content:flex-start; margin-top:.5rem; }
    .pagination-container .pagination-summary { order: 1; width:100%; margin-bottom:.25rem; }
    .pagination-container .jump-form { order: 2; width:100%; justify-content:flex-start; gap:.5rem; }
    .pagination-container .jump-form input { width: 100px; }
}

@media (max-width: 576px) {
    .search-panel { flex-direction: column; gap: .5rem; }
    .action-buttons { justify-content: flex-start; margin-top: .5rem; }
    .action-buttons .btn { font-size: .85rem; }
}

/* --- Sidebar Accordion Menu --- */
.sidebar .collapse-inner .collapse-item {
    padding: .4rem 1rem;
    font-size: .85rem;
    color: #3a3b45;
    display: flex;
    align-items: center;
    transition: background .15s ease, color .15s ease;
}
.sidebar .collapse-inner .collapse-item:hover {
    background: #eaecf4;
    color: #4e73df;
    text-decoration: none;
}
.sidebar .collapse-inner .collapse-item.active {
    /* background: #4e73df; */
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}
.sidebar .collapse-inner .collapse-item.active:hover {
    background: #3a5cc4;
    color: #fff;
}
.sidebar .nav-item .nav-link[data-bs-toggle="collapse"]::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    transition: transform .2s ease;
}
.sidebar .nav-item .nav-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(-90deg);
}
.sidebar .nav-item .nav-link[data-bs-toggle="collapse"]:not(.collapsed)::after {
    transform: rotate(0deg);
}
.sidebar .collapse-inner {
    margin: 0 .5rem;
    padding: .5rem 0;
}
.sidebar .sidebar-brand sup {
    font-size: .55rem;
    letter-spacing: .05em;
    opacity: .8;
}

/* --- Pagination Controls --- */
dir-pagination-controls {
    display: flex;
    justify-content: center;
    padding: .75rem 0;
}
dir-pagination-controls .pagination {
    margin: 0;
    gap: 4px;
}
dir-pagination-controls .pagination li a,
dir-pagination-controls .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: .85rem;
    color: #4e73df;
    background: #fff;
    text-decoration: none;
    transition: all .15s ease;
    cursor: pointer;
}
dir-pagination-controls .pagination li a:hover {
    background: #eaecf4;
    color: #224abe;
    border-color: #b7c2e0;
}
dir-pagination-controls .pagination li.active a,
dir-pagination-controls .pagination li.active span {
    background: #4e73df;
    color: #fff;
    border-color: #4e73df;
    font-weight: 600;
}
dir-pagination-controls .pagination li.disabled a,
dir-pagination-controls .pagination li.disabled span {
    color: #c0c4cc;
    background: #f8f9fc;
    border-color: #e3e6f0;
    cursor: not-allowed;
}

/* --- PDF Coordinates / Local Sign Styles --- */
.pdf-container {
    position: relative;
    border: 1px solid #ddd;
    background-color: #525659;
    overflow: auto;
    max-height: 800px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
}

.pdf-canvas-wrapper {
    position: relative;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background: white;
}

#pdfCanvas {
    display: block;
    cursor: crosshair;
}

.coordinate-box {
    position: absolute;
    border: 2px solid red;
    background-color: rgba(255, 0, 0, 0.1);
    pointer-events: none;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f8f9fc;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #4e73df;
    background-color: #e8edf7;
}

.upload-area.dragover {
    border-color: #1cc88a;
    background-color: #d4edda;
}

.info-card {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

