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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, rgba(230, 144, 64, 0.85) 0%, rgba(46, 35, 58, 0.85) 100%), url('/static/images/ICSRange-Background.png') center/cover fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 40px 20px;
}

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

.auth-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-section h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.input-group button {
    padding: 12px 24px;
    background: #F16915;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.input-group button:hover {
    background: #D85A0E;
}

.status-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    display: block;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    display: block;
}

/* Pagination styles */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 12px 0;
}

.pagination-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #333;
    font-weight: 600;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-button {
    padding: 8px 12px;
    background: #F16915;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.pagination-button:hover {
    background: #D85A0E;
}

#pageInput {
    width: 64px;
    padding: 6px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-section {
    display: none;
}

.feed-section.active {
    display: block;
}

.feed-header {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feed-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #F16915;
}

.feed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feed-item h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
}

.feed-item p {
    color: #666;
    font-size: 14px;
}

.feed-count-badge {
    display: inline-block;
    margin-top: 10px;
    background: #F16915;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.03em;
}

.data-display {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.data-display h2 {
    color: #222123;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F16915;
}

.data-grid {
    display: grid;
    gap: 20px;
}

.data-item {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 15px;
    border-left: 3px solid #F16915;
}

.data-item-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.data-item-row:last-child {
    margin-bottom: 0;
}

.data-key {
    font-weight: 600;
    color: #F16915;
    word-break: break-word;
}

.data-value {
    color: #333;
    word-break: break-all;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 13px;
}

.back-button {
    background: #F16915;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.back-button:hover {
    background: #D85A0E;
}

.loading {
    text-align: center;
    color: white;
    font-size: 16px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.search-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
}

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

.search-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.empty-state {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 18px;
}

.format-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.download-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.export-controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.format-button {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #222123;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.format-button.active {
    background: #F16915;
    color: white;
    border-color: #F16915;
}

.format-button:hover {
    border-color: #F16915;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 32px 8px 12px;
    background: #f0f0f0 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23222123" d="M0 0l5 6 5-6z"/></svg>') no-repeat right 10px center;
    color: #222123;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    line-height: 1.2;
}

.sort-select:hover {
    border-color: #F16915;
}

.sort-select:focus {
    outline: none;
    border-color: #F16915;
    box-shadow: 0 0 0 2px rgba(241, 105, 21, 0.15);
}

.text-display {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 12px;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, #222123 0%, #000000 100%);
    color: white;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 2px solid #F16915;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 14px;
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

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

    .footer-links {
        justify-content: center;
    }
}

/* About Page Styling */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.about-header p {
    color: #666;
    font-size: 16px;
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F16915;
}

.about-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-card h3 {
    color: #333;
    margin-top: 0;
}

.about-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.about-card ol,
.about-card ul {
    color: #666;
    line-height: 1.8;
    margin-left: 20px;
}

.about-card li {
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card,
.feed-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #F16915;
}

.feature-card h3,
.feed-card h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-card p,
.feed-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.process-list {
    margin-left: 20px;
    color: #333;
}

.process-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.process-list strong {
    color: #333;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-column {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-column h3 {
    color: #F16915;
    margin-top: 0;
    border-bottom: 2px solid #F16915;
    padding-bottom: 10px;
}

.tech-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.tech-column li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tech-column li:last-child {
    border-bottom: none;
}

.endpoint {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.endpoint:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.endpoint-path {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: #F16915;
    display: block;
    margin-bottom: 8px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 13px;
}

.endpoint p {
    color: #666;
    margin: 0;
}

.auth-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.auth-methods li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.auth-methods li:last-child {
    border-bottom: none;
}

.auth-methods code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 12px;
    color: #F16915;
}

.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.about-footer {
    text-align: center;
    color: #333;
}

.about-footer p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .about-header {
        padding: 20px;
    }

    .about-header h1 {
        font-size: 24px;
    }

    .about-section h2 {
        font-size: 20px;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .feeds-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styling */
.legal-container {
    background: white;
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legal-container h1 {
    color: #F16915;
    font-size: 42px;
    margin-bottom: 10px;
    border-bottom: 3px solid #F16915;
    padding-bottom: 20px;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
}

.legal-content {
    color: #333;
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: #222123;
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 30px;
    border-left: 4px solid #F16915;
    padding-left: 15px;
}

.legal-section h3 {
    color: #F16915;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 16px;
}

.legal-section ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-section li {
    margin-bottom: 10px;
    font-size: 16px;
}

.legal-section code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: #F16915;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Contact Page Styling */
.contact-container {
    background: white;
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 3px solid #F16915;
    padding-bottom: 30px;
}

.contact-header h1 {
    color: #F16915;
    font-size: 42px;
    margin-bottom: 15px;
}

.contact-header p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid #F16915;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(241, 105, 21, 0.2);
    transform: translateY(-5px);
}

.contact-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.contact-card h3 {
    color: #222123;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.map-link,
.call-link,
.email-link {
    color: #F16915;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.map-link:hover,
.call-link:hover,
.email-link:hover {
    color: #D85A0E;
    text-decoration: underline;
}

.business-info {
    background: #ECE5E2;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #F16915;
}

.business-info h2 {
    color: #222123;
    font-size: 24px;
    margin-bottom: 15px;
}

.business-info p {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.business-info ul {
    margin-left: 30px;
    color: #333;
}

.business-info li {
    margin-bottom: 10px;
    font-size: 15px;
}

.response-info {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #F16915;
}

.response-info h3 {
    color: #F16915;
    font-size: 20px;
    margin-bottom: 10px;
}

.response-info p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.legal-links-section {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #ECE5E2;
}

.legal-links-section h3 {
    color: #222123;
    font-size: 20px;
    margin-bottom: 15px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-link {
    color: #F16915;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.legal-link:hover {
    color: #D85A0E;
    text-decoration: underline;
}

/* Responsive Legal/Contact Pages */
@media (max-width: 768px) {
    .legal-container,
    .contact-container {
        padding: 30px 20px;
    }

    .legal-container h1,
    .contact-header h1 {
        font-size: 32px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Login Page Styling */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    animation: slideIn 0.5s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-header h1 {
    color: #222123;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.login-form {
    margin-bottom: 30px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ECE5E2;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #F16915;
    box-shadow: 0 0 0 3px rgba(241, 105, 21, 0.1);
}

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

.login-button {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #F16915 0%, #D85A0E 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(241, 105, 21, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

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

.status-message.error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.status-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.login-footer {
    text-align: center;
    border-top: 1px solid #ECE5E2;
    padding-top: 20px;
}

.login-footer p {
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: #F16915;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.login-footer a:hover {
    color: #D85A0E;
    text-decoration: underline;
}

/* Responsive Login */
@media (max-width: 600px) {
    .login-card {
        padding: 40px 30px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-logo {
        height: 70px;
    }
}

