/* Admin Panel Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide body until auth check is complete */
body {
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.auth-ready {
    opacity: 1;
}

/* Body styles now handled by main styles.css for sidebar layout */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.admin-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header h1 {
    color: #066e66;
    font-size: 28px;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Tab Navigation */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #e8f5f3;
    border-color: #066e66;
    color: #066e66;
}

.tab-btn.active {
    background: linear-gradient(135deg, #066e66 0%, #0a8a80 100%);
    color: white;
    border-color: #066e66;
    box-shadow: 0 4px 12px rgba(6, 110, 102, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Authentication Section */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    color: #066e66;
    margin-bottom: 20px;
    text-align: center;
}

.auth-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

/* Form Styles */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-card h2 {
    color: #066e66;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #066e66;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: default;
}

.form-group small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #066e66;
    color: white;
}

.btn-primary:hover {
    background: #055555;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

/* Table Styles */
.table-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h2 {
    color: #066e66;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Year Selector */
.year-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-selector label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.year-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.year-select:focus {
    outline: none;
    border-color: #2e7d32;
}

/* Smart Search Container */
.smart-search-container {
    position: relative;
}

.smart-search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.3s ease;
    min-width: 300px;
}

.smart-search-wrapper:focus-within {
    border-color: #066e66;
    box-shadow: 0 0 0 3px rgba(6, 110, 102, 0.1);
}

.smart-search-wrapper .search-icon {
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.6;
}

.smart-search-wrapper .search-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    font-size: 14px;
    background: transparent;
    min-width: 200px;
}

.smart-search-wrapper .search-input:focus {
    outline: none;
}

.search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: #066e66;
    color: white;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #f0f7f6;
}

.suggestion-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-text mark {
    background: #fef08a;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.suggestion-type {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-no-results span {
    font-size: 24px;
}

.table-container {
    overflow-x: auto;
}

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

thead {
    background: #066e66;
    color: white;
}

/* Filter Row Styles */
.filter-row {
    background: #f0f7f6;
}

.filter-row th {
    padding: 8px 5px;
}

.column-filter {
    width: 100%;
    min-width: 100px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    color: #333;
}

.column-filter:focus {
    outline: none;
    border-color: #066e66;
    box-shadow: 0 0 3px rgba(6, 110, 102, 0.3);
}

.column-filter:hover {
    border-color: #066e66;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 11px;
}

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

th {
    font-weight: 600;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8f9fa;
}

td {
    font-size: 14px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 40px;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.modal-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.modal-detail {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Role Modal Styles */
.modal-role {
    max-width: 600px;
}

.modal-role h3 {
    color: #066e66;
    margin-bottom: 5px;
}

.modal-user-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f7f6;
    border-radius: 8px;
    font-weight: 600;
}

.role-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 15px;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.role-option input:checked + .role-card {
    border-color: #066e66;
    background: #f0f7f6;
    box-shadow: 0 4px 12px rgba(6, 110, 102, 0.15);
}

.role-card:hover {
    border-color: #066e66;
    transform: translateY(-2px);
}

.role-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.role-name {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.role-desc {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.section-assignment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.section-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.section-info {
    font-size: 13px;
    color: #666;
}

.select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #066e66;
    font-weight: 600;
    cursor: pointer;
}

.select-all-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.section-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.section-checkbox:hover {
    border-color: #066e66;
    background: #f0f7f6;
}

.section-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.section-checkbox:has(input:checked) {
    background: #f0f7f6;
    border-color: #066e66;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.checkbox-desc {
    font-size: 12px;
    color: #666;
}

.no-sections {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Role Badge in Table */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.sections-list {
    font-size: 12px;
    color: #666;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Status Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .tab-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 10px;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
    }

    .table-actions {
        width: 100%;
        flex-direction: column;
    }

    .smart-search-container {
        width: 100%;
    }

    .smart-search-wrapper {
        min-width: 100%;
    }

    .smart-search-wrapper .search-input {
        min-width: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #066e66;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Conflict Row Highlighting */
.conflict-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.conflict-row:hover {
    background-color: #ffe69c !important;
}

.conflict-row td {
    position: relative;
}

/* Conflict Summary Banner */
.conflict-summary {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.conflict-summary .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.conflict-summary h4 {
    color: #856404;
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #856404;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(0,0,0,0.1);
}

.summary-note {
    color: #856404;
    font-size: 14px;
    margin: 10px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Conflict Details Modal */
.modal-large {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 35px;
    height: 35px;
}

.btn-close-modal:hover {
    color: #333;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 20px;
    text-align: right;
}

.conflict-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conflict-detail-item {
    background: #f8f9fa;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
}

.conflict-detail-item h4 {
    color: #856404;
    margin-bottom: 10px;
}

.conflict-detail-item p {
    margin: 5px 0;
    color: #333;
}

.conflict-messages {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.conflict-msg {
    color: #dc3545;
    font-size: 14px;
    margin: 8px 0 !important;
    padding: 8px;
    background: #fff5f5;
    border-radius: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Conflict Warning Styles */
.conflict-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    animation: slideIn 0.3s ease-out;
}

.conflict-warning h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 18px;
}

.conflict-warning ul {
    margin: 10px 0;
    padding-left: 20px;
}

.conflict-warning li {
    margin: 10px 0;
    color: #856404;
    line-height: 1.6;
}

.conflict-warning strong {
    color: #cc6600;
}

.warning-note {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.conflict-list {
    list-style: none;
    padding: 0;
}

.conflict-list li {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.conflict-list small {
    color: #666;
    display: block;
    margin-top: 5px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for warnings */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.conflict-warning h4 {
    animation: pulse 2s infinite;
}
/* User Management Styles */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff9e6 !important;
}

.status-approved {
    background-color: #e8f5e9 !important;
}

.status-rejected {
    background-color: #ffebee !important;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.register-link {
    margin-top: 10px;
    text-align: center;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* ==========================================
   JANA NOTIS TAB STYLES
   ========================================== */

.notis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .notis-grid {
        grid-template-columns: 1fr;
    }
}

.notis-form-card,
.notis-preview-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.notis-form-card h2,
.notis-preview-card h2 {
    color: #066e66;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Notis Tabs */
.notis-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.notis-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.notis-tab small {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 500;
}

.notis-tab:hover {
    border-color: #066e66;
    color: #066e66;
}

.notis-tab.active {
    background: linear-gradient(135deg, #066e66 0%, #0a8a80 100%);
    color: white;
    border-color: #066e66;
    box-shadow: 0 4px 12px rgba(6, 110, 102, 0.3);
}

.notis-tab.active small {
    opacity: 0.9;
}

/* Notis Form */
.notis-form .form-group {
    margin-bottom: 15px;
}

.notis-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.notis-form .form-group input,
.notis-form .form-group select,
.notis-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.notis-form .form-group input:focus,
.notis-form .form-group select:focus,
.notis-form .form-group textarea:focus {
    outline: none;
    border-color: #066e66;
    box-shadow: 0 0 0 3px rgba(6, 110, 102, 0.1);
}

/* Readonly input styling for notis */
.notis-form .form-group input[readonly] {
    background: #f8f9fa;
    cursor: pointer;
}

.notis-form .form-group input[readonly]#notisHari {
    cursor: default;
    background: linear-gradient(135deg, rgba(6, 110, 102, 0.1) 0%, rgba(6, 110, 102, 0.05) 100%);
    color: #066e66;
    font-weight: 600;
}

.notis-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Merge Section */
.merge-section {
    background: #f0f7f6;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border: 2px dashed #066e66;
}

.merge-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.merge-chip,
.mode-chip,
.status-chip,
.index-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.merge-chip {
    background: #e8f5f3;
    color: #066e66;
}

.mode-chip {
    background: linear-gradient(135deg, #066e66 0%, #0a8a80 100%);
    color: white;
}

.status-chip {
    background: #e8f5f3;
    color: #066e66;
}

.index-chip {
    background: #fff3cd;
    color: #856404;
}

/* Preview Section */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-header h2 {
    margin: 0;
}

.preview-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #066e66, #0a8a80);
    transition: width 0.3s ease;
}

.validation-status {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid #ffc107;
}

.validation-status b {
    color: #856404;
}

.validation-status b.valid {
    color: #28a745;
}

.validation-status b.invalid {
    color: #dc3545;
}

.notis-preview {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Toast Notification */
.notis-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.notis-toast.show {
    display: block;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================
   TEMPLATE NOTIS EDITOR STYLES
   ========================================== */

.template-info {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.placeholder-guide {
    background: #f0f9f7;
    border: 1px solid #066e66;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 2;
}

.placeholder-guide code {
    background: #066e66;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    margin-right: 5px;
}

.template-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.template-tab {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-tab:hover {
    background: #e8f5f3;
    border-color: #066e66;
    color: #066e66;
}

.template-tab.active {
    background: #066e66;
    color: white;
    border-color: #066e66;
}

.template-editor-container {
    margin-bottom: 20px;
}

.template-editor {
    display: none;
}

.template-editor.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.template-editor label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.template-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.template-textarea:focus {
    outline: none;
    border-color: #066e66;
    background: white;
}

.template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.template-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.template-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.template-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.template-status.info {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Preview Modal */
.modal-preview {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-preview h3 {
    margin-bottom: 10px;
}

.preview-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.preview-text {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 15px;
}

/* ============================================
   INFO MANAGEMENT TAB STYLES
   ============================================ */

/* Quill Editor Container */
#infoEditor {
    min-height: 250px;
    background: white;
    border-radius: 0 0 10px 10px;
}

#infoEditorToolbar {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.ql-container {
    border: 1px solid #ddd !important;
    border-radius: 0 0 10px 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
}

.ql-toolbar {
    border: none !important;
    background: #f8f9fa;
}

.ql-editor {
    min-height: 200px;
    line-height: 1.7;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: #066e66;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

/* File Upload Section */
.file-upload-section {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-upload-section:hover {
    border-color: #066e66;
    background: #f0f9f8;
}

.file-upload-dropzone {
    text-align: center;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-dropzone.dragover {
    background: #e8f5f3;
    border-color: #066e66;
}

.file-upload-dropzone .upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.file-upload-dropzone p {
    color: #666;
    margin-bottom: 8px;
}

.file-upload-dropzone .browse-link {
    color: #066e66;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.file-upload-dropzone small {
    color: #999;
    display: block;
}

/* File List */
.file-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.file-item .file-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.file-item .file-info {
    flex: 1;
    min-width: 0;
}

.file-item .file-name {
    font-weight: 600;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    font-size: 12px;
    color: #888;
}

.file-item .file-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.file-item .file-status.uploading {
    background: #fff3cd;
    color: #856404;
}

.file-item .file-status.uploaded {
    background: #d4edda;
    color: #155724;
}

.file-item .file-status.error {
    background: #f8d7da;
    color: #721c24;
}

.file-item .file-actions {
    display: flex;
    gap: 8px;
}

.file-item .btn-file-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.file-item .btn-file-action.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.file-item .btn-file-action.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.file-item .btn-file-action:hover {
    transform: scale(1.1);
}

/* File Thumbnail */
.file-item .file-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Info Filter Row */
.info-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #066e66;
}

/* Info Content List */
.info-content-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-content-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #066e66;
    transition: all 0.3s ease;
}

.info-content-item:hover {
    background: #f0f9f8;
    box-shadow: 0 4px 12px rgba(6,110,102,0.1);
}

.info-content-item.inactive {
    opacity: 0.6;
    border-left-color: #999;
}

.info-content-item .item-order {
    width: 36px;
    height: 36px;
    background: #066e66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.info-content-item.inactive .item-order {
    background: #999;
}

.info-content-item .item-details {
    flex: 1;
    min-width: 0;
}

.info-content-item .item-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content-item .item-category {
    font-size: 11px;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-weight: 500;
}

.info-content-item .item-category.general {
    background: #e8f5e9;
    color: #2e7d32;
}

.info-content-item .item-category.announcement {
    background: #fff3e0;
    color: #e65100;
}

.info-content-item .item-category.document {
    background: #e3f2fd;
    color: #1565c0;
}

.info-content-item .item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.info-content-item .item-preview {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-content-item .item-files {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.info-content-item .item-file-badge {
    font-size: 12px;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    color: #666;
}

.info-content-item .item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-content-item .btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.info-content-item .btn-icon.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.info-content-item .btn-icon.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.info-content-item .btn-icon:hover {
    transform: scale(1.1);
}

/* Empty State */
.info-content-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.info-content-list .empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* Upload Progress */
.upload-progress {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.upload-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #066e66, #088178);
    transition: width 0.3s ease;
}

/* Mobile Responsiveness for Info Tab */
@media (max-width: 768px) {
    .file-upload-dropzone {
        padding: 20px 15px;
    }
    
    .file-upload-dropzone .upload-icon {
        font-size: 36px;
    }
    
    .file-item {
        flex-wrap: wrap;
    }
    
    .file-item .file-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    .info-content-item {
        flex-direction: column;
    }
    
    .info-content-item .item-order {
        align-self: flex-start;
    }
    
    .info-content-item .item-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    .info-filter-row {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    #infoEditor {
        min-height: 200px;
    }
}