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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    min-height: 100vh;
}

.demo-warning {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    color: white;
    padding: 1rem 0;
    border-bottom: 3px solid #b71c1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 9999;
}

.demo-warning-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-warning .warning-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.demo-warning .warning-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.demo-warning .warning-text strong {
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block;
    margin-right: 0.5rem;
}

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

.info-banner {
    background: #B8D8E8;
    padding: 1rem 0;
    border-bottom: 1px solid #95c5db;
}

.info-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-text {
    flex: 1;
}

.info-text p {
    margin: 0;
    font-size: 0.95rem;
}

.info-link {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.dismiss-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #000;
}

header {
    background: #A5D8E8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.govt-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coat-of-arms {
    font-size: 2rem;
}

.coat-of-arms-img {
    height: 50px;
    width: auto;
    display: block;
}

.govt-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
}

.mygov-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-triangle {
    color: #000;
    transform: rotate(0deg);
}

.logo-name {
    color: #000;
}

.mygov-logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    text-decoration: underline;
}

.secondary-nav {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
    justify-content: flex-end;
}

.secondary-link {
    color: #000;
    text-decoration: underline;
    font-size: 0.9rem;
}

.btn-signin {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.btn-signin:hover {
    background: #333;
}

main {
    background: #fff;
}

.hero-section {
    padding: 3rem 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #000;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.hero-description {
    font-size: 1.1rem;
    color: #333;
}

.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.signin-card,
.support-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signin-card h2,
.support-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.signin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-signin-main {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.btn-signin-main:hover {
    background: #333;
}

.or-text {
    color: #666;
}

.create-link {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

.info-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.support-card {
    display: flex;
    flex-direction: column;
}

.support-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.placeholder-image {
    font-size: 4rem;
}

.support-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-explore {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-start;
}

.btn-explore:hover {
    background: #f5f5f5;
}

.search-section {
    background: #f9f9f9;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-section h3 {
    margin-bottom: 1rem;
    color: #000;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #000;
}

.btn-search {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.btn-search:hover {
    background: #333;
}

.search-results {
    margin-top: 1rem;
    min-height: 50px;
}

.search-result-item {
    padding: 1rem;
    background: #fff;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.useful-info-section {
    background: #f5f5f5;
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #000;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-card-image {
    width: 100%;
    height: 180px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-image .placeholder-image {
    font-size: 3rem;
}

.info-card-content {
    padding: 1.5rem;
    position: relative;
}

.info-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #000;
    font-weight: 600;
}

.info-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #000;
}

.chat-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

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

.user-message {
    background: #000;
    color: white;
    margin-left: auto;
}

.assistant-message {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #000;
}

.error-message {
    background: #ffebee;
    border: 2px solid #dc3545;
    color: #c62828;
}

.error-message strong {
    color: #b71c1c;
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.chat-input-container input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #000;
}

.assistant-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.assistant-button:hover {
    background: #333;
    transform: scale(1.05);
}

.assistant-icon {
    font-size: 1.2rem;
}


.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.modal-large {
    max-width: 600px;
}

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

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.login-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.login-status.success {
    background: #d4edda;
    color: #155724;
}

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

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay:not(.hidden) {
    display: flex;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.attack-banner {
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.attack-banner.hidden {
    display: none;
}

.services-disabled .attack-banner {
    background: #607d8b;
    animation: none;
}

footer {
    background: #000;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social span {
    font-size: 0.9rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

.footer-logo {
    margin: 2rem 0;
}

.govt-logo-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.acknowledgment {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.attack-control {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    text-align: center;
}

.attack-control a {
    color: #A5D8E8;
    text-decoration: none;
    font-weight: 600;
}

.attack-control a:hover {
    text-decoration: underline;
}

body.under-attack * {
    transition: all 5s ease !important;
}

body.under-attack button:hover,
body.under-attack .info-card:hover {
    transform: none !important;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-info span {
    color: #000;
    font-weight: 600;
}

#logout-btn {
    padding: 0.5rem 1rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .demo-warning {
        padding: 0.75rem 0;
    }
    
    .demo-warning .warning-icon {
        font-size: 1.5rem;
    }
    
    .demo-warning .warning-text {
        font-size: 0.85rem;
    }
    
    .demo-warning .warning-text strong {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .content-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 120px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.search-suggestions.hidden {
    display: none;
}

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

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

.suggestion-item:hover,
.suggestion-item.highlighted {
    background-color: #f5f5f5;
}

.suggestion-icon {
    font-size: 18px;
    margin-right: 12px;
    color: #667eea;
}

.suggestion-content {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-name strong {
    color: #667eea;
}

.suggestion-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.suggestion-desc strong {
    font-weight: 600;
}

.suggestion-loading,
.suggestion-error {
    padding: 12px 16px;
    text-align: center;
    color: #666;
}

.suggestion-error {
    color: #dc3545;
}
