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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    background-image: url('/images/ams-logo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 50%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.85);
    z-index: 0;
    pointer-events: none;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Navbar Styles */
.navbar {
    background: #000000;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-left {
    height: 80px;
    width: auto;
    display: block;
}

.navbar-logo-right {
    display: flex;
    align-items: center;
}

.logo-right {
    height: 20px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.navbar-auth {
    margin-left: auto;
}

.btn-signin {
    background-color: #3b82f6;
    color: white;
    border: 2px solid #3b82f6;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signin:hover {
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(244, 244, 244, 0.98);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 1rem;
}

/* Content Section */
.content-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.about-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.about-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Services Highlight Section */
.services-highlight {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-highlight h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.service-item p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Query Form */
.query-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.query-form h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.query-form > p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea.form-control {
    resize: vertical;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* About Page */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #1e3a8a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section h3 {
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.about-section h4 {
    color: #475569;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.about-section strong {
    color: #1e3a8a;
    font-weight: 600;
}

.services-section ul {
    background: #f9fafb;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.services-section ul li {
    color: #374151;
}

.last-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #374151;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-expertise {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-expertise h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.expertise-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.expertise-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.expertise-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.cta-section {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background-color: white;
    color: #3b82f6;
    text-decoration: none;
    display: inline-block;
}

.cta-section .btn-primary:hover {
    background-color: #f3f4f6;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    text-align: center;
    padding: 0;
    margin-top: 2rem;
}

.footer-logo-section {
    background-color: white;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    max-width: 300px;
    height: auto;
    display: block;
}

.footer p {
    padding: 1.5rem;
    margin: 0;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-content {
    flex: 1;
}

.cookie-consent-text {
    margin: 0;
    line-height: 1.6;
    color: #e2e8f0;
}

.cookie-consent-text strong {
    color: white;
    font-size: 1.1rem;
}

.cookie-policy-link {
    color: #60a5fa;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.cookie-policy-link:hover {
    color: #93c5fd;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-accept {
    background-color: #3b82f6;
    color: white;
}

.btn-accept:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-decline {
    background-color: transparent;
    color: #94a3b8;
    border: 2px solid #475569;
}

.btn-decline:hover {
    background-color: #475569;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-size: 80%;
    }

    .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-left,
    .logo-right {
        height: 50px;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-auth {
        margin-left: 0;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

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

    .btn-cookie {
        width: 100%;
    }

    .footer-logo {
        max-width: 200px;        
     }

    .footer-logo-section {
        padding: 1.5rem;
        max-width: 400px;
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZz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zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }
