/* Additional styles for rincian.html */
/* Ensure only navbar floats on small screens */
@media (max-width: 768px) {
    .search-section,
    .main-content,
    .data-table-section {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }
}

/* Alert info styles for filtering notification */
.alert-info {
    background-color: #e7f3ff;
    color: #0c5460;
    border-left: 4px solid #0dcaf0;
}

.alert-info .fas {
    color: #0dcaf0;
}

/* Alert warning styles for search results */
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-warning .fas {
    color: #ffc107;
}

/* Search input styling */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-control {
    padding-right: 2.5rem;
    border: 2px solid var(--border-color, #9CA3AF);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input-wrapper .form-control:focus {
    border-color: var(--primary-green, #22c55e);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-color);
    pointer-events: none;
}

.search-input-wrapper .form-control:focus + .search-icon {
    color: var(--primary-green);
}

/* Clear search button */
.btn-clear-search {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--border-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.btn-clear-search:hover {
    color: var(--primary-green);
    background-color: rgba(46, 125, 50, 0.1);
}

.btn-clear-search.show {
    display: block;
}

/* Navbar uses global styles from assets/css/style.css for full consistency */

/* Dark mode toggle removed */

/* SPPG Input Field Styling */
.sppg-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
    color: #1A1A1A;
}

.sppg-input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.sppg-input.npsn {
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 1px;
}

.sppg-input.jumlah-siswa {
    text-align: center;
}

.sppg-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* SPPG Submit Button Styling */
.btn-submit-sppg {
    background-color: #2E7D32;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 36px;
}

.btn-submit-sppg:hover:not(:disabled) {
    background-color: #1B5E20;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-submit-sppg:disabled {
    background-color: #BDBDBD;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit-sppg.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Input Field States */
.sppg-input.success {
    border-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.sppg-input.error {
    border-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* Error Message Styling */
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Table Responsive Adjustments */
@media (max-width: 1200px) {
    .data-table th:nth-child(8),
    .data-table td:nth-child(8),
    .data-table th:nth-child(9),
    .data-table td:nth-child(9),
    .data-table th:nth-child(10),
    .data-table td:nth-child(10),
    .data-table th:nth-child(11),
    .data-table td:nth-child(11) {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    /* Navbar responsive handled globally */
    .search-section,
    .main-content,
    .data-table-section {
        margin: 0 0.5rem 0.75rem 0.5rem;
        padding: 0.75rem;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .data-table th:nth-child(8),
    .data-table td:nth-child(8),
    .data-table th:nth-child(9),
    .data-table td:nth-child(9),
    .data-table th:nth-child(10),
    .data-table td:nth-child(10),
    .data-table th:nth-child(11),
    .data-table td:nth-child(11) {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .sppg-input {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .btn-submit-sppg {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        min-height: 32px;
    }
}

@media (max-width: 576px) {
    /* Navbar responsive handled globally */
    .data-table th:nth-child(8),
    .data-table td:nth-child(8),
    .data-table th:nth-child(9),
    .data-table td:nth-child(9),
    .data-table th:nth-child(10),
    .data-table td:nth-child(10),
    .data-table th:nth-child(11),
    .data-table td:nth-child(11) {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .sppg-input {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .btn-submit-sppg {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        min-height: 28px;
    }
}

/* Dark theme support removed */

/* Dark theme support removed */
