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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

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

/* Navbar Styles */
.navbar {
    background: #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.navbar-brand {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s;
    display: block;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.navbar-link.active {
    background: white;
    color: #333333;
    font-weight: 600;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Controls Section */
.controls {
    padding: 15px 0;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 250px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #1a1a1a;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #333333;
}

select:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

/* Link Buttons */
.link {
    display: inline-block;
    padding: 10px 20px;
    background: #00bee5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 190, 229, 0.3);
}

/* Loading States */
.loading, #loading {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

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

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

.loading-text {
    font-size: 1.3em;
    font-weight: 500;
}

/* Error States */
#error {
    padding: 20px;
    margin: 20px 0;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    color: #c33;
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
    .navbar-menu {
        background: #333333;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-link {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 5px;
    }

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

    .control-group {
        min-width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    color: #00bee5;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.modal-body {
    color: #555;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-height: 70dvh;
    overflow: auto;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-footer {
    text-align: center;
}

.modal-btn {
    background: #00bee5;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 190, 229, 0.3);
    background: #00a5cc;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-header {
        font-size: 1.5em;
    }

    .modal-body {
        font-size: 0.95em;
    }
}

/* Deprecation Notice Banner */
.deprecation-notice {
    background: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 15px 20px;
    text-align: center;
    font-size: 1em;
    color: #856404;
    font-weight: 500;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.deprecation-notice strong {
    color: #856404;
    font-weight: 700;
}

@media (max-width: 768px) {
    .deprecation-notice {
        font-size: 0.9em;
        padding: 12px 15px;
    }
}
