body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background: #e9e9e9;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
}

.filter-group select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.navigation button {
    padding: 10px 20px;
    margin: 0 15px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.navigation button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#page-info {
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    width: 30%;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

#data-display {
    flex: 1;
    overflow-x: auto;
}

#content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#thumbnail-display {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail-item {
    cursor: pointer;
    text-align: center;
}

.thumbnail-item img {
    width: 100%;
    border-radius: 4px;
    border: 2px solid #ddd;
    transition: transform 0.2s;
}

.thumbnail-item img:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.thumbnail-label {
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

#search-input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 5px;
}

#search-btn {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Schedule View Styles (mimicking PDF) */
.schedule-view {
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    width: 100%;
}

.schedule-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 10px;
}

.schedule-header h2 {
    margin: 5px 0;
    font-size: 1.2em;
}

.schedule-header h3 {
    margin: 5px 0;
    font-size: 1em;
}

.identification-box {
    border: 1px solid #000;
    padding: 10px;
    margin-bottom: 15px;
}

.grid-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.grid-item {
    flex: 1;
}

.label {
    font-weight: bold;
    display: block;
    color: #555;
    font-size: 0.85em;
}

.value {
    display: block;
    padding: 2px 0;
}

.unique-id-key {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px dashed #999;
    margin: 10px 0;
    text-align: center;
}

.unique-id-key .label {
    margin-bottom: 5px;
}

.unique-id-key .value {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
}

.section-title {
    background-color: #eee;
    padding: 5px 10px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    border-left: 4px solid #333;
}

.info-item {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item .label {
    font-size: 0.9em;
}

.info-item .value {
    padding-left: 10px;
}

.two-col {
    display: flex;
    gap: 20px;
}

.two-col > div {
    flex: 1;
}

.remark-box {
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
}

.officer-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
