/* E-Reminder - Government Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Government Header */
.gov-header {
    background: linear-gradient(180deg, #1B4D89 0%, #0D2847 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid #FFD700;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-karantina {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-text {
    display: flex;
    flex-direction: column;
}

.gov-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.gov-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-icon {
    color: #FFD700;
    font-size: 1.5rem;
}

.verified-text {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

.karantina-pattern {
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(27, 77, 137, 0.02) 35px, rgba(27, 77, 137, 0.02) 70px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.gov-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #1B4D89;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.gov-card:hover {
    box-shadow: 0 4px 16px rgba(27, 77, 137, 0.2);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #FFD700;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
}

.section-header.justify-between {
    justify-content: space-between;
}

.section-header .material-icons {
    color: #1B4D89;
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.count-badge {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
}

/* Top Row Layout */
.top-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1B4D89;
    box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn .material-icons {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: #1B4D89;
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #0D2847;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 77, 137, 0.3);
}

.btn-success {
    background-color: #27AE60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background-color: #C0392B;
    color: white;
}

.btn-danger:hover {
    background-color: #A93226;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-icon {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #C0392B;
    transition: all 0.3s;
}

.btn-icon:hover {
    transform: scale(1.2);
    color: #A93226;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #1B4D89;
}

th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

th .material-icons.small {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.875rem;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-start {
    background-color: #fff3cd;
    color: #856404;
}

.status-end {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-report {
    background-color: #cce5ff;
    color: #004085;
}

/* Broadcast Section */
.broadcast-card {
    background: linear-gradient(135deg, #1B4D89 0%, #0D2847 100%);
    color: white;
}

.broadcast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.broadcast-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.broadcast-info p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.broadcast-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.schedule-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Footer */
.footer-gov {
    background: rgba(27, 77, 137, 0.15);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    font-size: 2.5rem;
    color: #1B4D89;
}

.footer-left h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    margin: 0;
}

.footer-left p {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

.footer-center {
    text-align: center;
}

.developer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.footer-center h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1B4D89;
    margin: 0;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

.motto {
    font-style: italic;
    color: #777;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: #27AE60;
}

.toast.error {
    background-color: #C0392B;
}

.toast.warning {
    background-color: #F39C12;
}

.toast.info {
    background-color: #3498DB;
}

/* Dialog */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.dialog-overlay.show {
    display: flex;
}

.dialog-content {
    max-width: 500px;
    width: 90%;
}

.dialog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.dialog-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Material Icons Small */
.material-icons.small {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-row {
        grid-template-columns: 1fr;
    }
    
    .broadcast-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .broadcast-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gov-header {
        padding: 1rem;
    }
    
    .logo-karantina {
        width: 60px;
        height: 60px;
    }
    
    .gov-title {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}
