/* Main CSS File - Shared across all pages */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #fff;
}

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

/* Header Styles */
header {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 16px 16px 8px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

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

.header-content p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
    padding-bottom: 4px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: #007bff;
    color: white;
}

.btn-secondary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Contact Footer */
.contact-footer {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.contact-footer:hover {
    border-color: #dc3545;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
}

.contact-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-footer p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-footer a {
    color: inherit;
    text-decoration: underline;
}

.contact-footer a:hover {
    color: #dc3545;
}

/* Home Page Specific Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.tool-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: #dc3545;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
    color: inherit;
    text-decoration: none;
}

.tool-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #555;
}

.tool-card-disabled:hover {
    border-color: #555;
    transform: none;
    box-shadow: none;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tool-icon-inline {
    font-size: 1.5rem;
    margin-right: 8px;
}

.tool-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tool-card p {
    color: #ccc;
    line-height: 1.5;
    font-size: 0.95rem;
}

.tool-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
}

.tool-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tool-badge-required {
    background: #dc3545;
    color: white;
}

.tool-badge-coming-soon {
    background: #ffc107;
    color: #000;
}

/* Analytics Section */
.analytics-section {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}

.analytics-section:hover {
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    color: inherit;
}

.analytics-section h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.analytics-section h3 i {
    font-size: 1.8rem;
}

.analytics-section p {
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    text-align: center;
}

.donation-content h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.donation-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.donation-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Message Bars */
.message-bar {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* API Key Bar */
.api-key-bar {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.api-key-bar label {
    color: #ccc;
    font-weight: 500;
}

.api-key-bar input {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.api-key-bar input:focus {
    outline: none;
    border-color: #dc3545;
}

.api-key-bar button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-save-key {
    background: #28a745;
    color: white;
}

.btn-save-key:hover {
    background: #218838;
}

.btn-clear-key {
    background: #dc3545;
    color: white;
}

.btn-clear-key:hover {
    background: #c82333;
}

/* Analytics Section */
.analytics-section {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.analytics-section:hover {
    border-color: #dc3545;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
    color: inherit;
    text-decoration: none;
}

.analytics-section h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.analytics-section p {
    color: #ccc;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Donation Section */
.donation-section {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.donation-section:hover {
    border-color: #dc3545;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
}

.donation-section h2 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.donation-section p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.donation-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .api-key-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .api-key-bar input {
        min-width: auto;
    }
    
    .donation-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Alerts Page Specific Styles */
.alerts-container {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 10px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.alerts-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.add-alert-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.add-alert-label {
    color: #ccc;
    font-weight: 500;
}

.notification-logos {
    display: flex;
    gap: 10px;
}

.notification-logo-btn {
    background: #fff;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-logo-btn:hover {
    border-color: #dc3545;
    transform: translateY(-2px);
}

.notification-logo {
    height: 24px;
    width: auto;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert-card {
    background: #2d2d2d;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.alert-card.active {
    border-color: #28a745;
}

.alert-card.inactive {
    border-color: #6c757d;
    opacity: 0.7;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alert-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.alert-status {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.alert-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-row .label {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-row .value {
    color: #fff;
    font-size: 0.95rem;
}

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

.btn-warning {
    background: #6c757d;
    color: white;
}

.btn-warning:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.no-alerts {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-alerts i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #666;
}

.no-alerts h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: #2d2d2d;
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

/* Prevent modal from closing when clicking outside */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Force links to stay blue */
.form-group small a,
.variables-help a,
.notification-config a {
    color: #007bff !important;
    text-decoration: underline;
}

.form-group small a:hover,
.variables-help a:hover,
.notification-config a:hover {
    color: #0056b3 !important;
    text-decoration: underline;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group small {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-top: 6px;
    line-height: 1.4;
}

.variables-help {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.variables-help h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variables-help h4 i {
    color: #007bff;
}

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

.variable-group h5 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.variable-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.variable-group li {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.variable-group code {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 2px 6px;
    color: #ffc107;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.notification-config {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.test-section {
    margin-top: 15px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Flight Status Container */
#flightStatusContainer {
    margin-bottom: 20px;
}

.flight-status {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.flight-status h3 {
    color: #fff;
    margin-bottom: 15px;
}

.flight-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.flight-info-item {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
}

.flight-info-item .label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.flight-info-item .value {
    color: #fff;
    font-weight: 600;
}

.no-flight {
    color: #999;
    font-style: italic;
}

/* Enhanced Flight Status Styles */
.flight-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.flight-status.flight-torn {
    border-color: #28a745;
}

.flight-status.flight-country {
    border-color: #28a745;
}

.flight-status.flight-grounded {
    border-color: #6c757d;
}

.flight-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.flight-torn .flight-icon {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.flight-country .flight-icon {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.flight-grounded .flight-icon {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.flight-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.flight-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flight-details h3 {
    margin: 0;
    font-size: 1.3rem;
}

.flight-details p {
    color: #ccc;
    margin: 0;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 1.1rem;
}

.route-point {
    background: #2d2d2d;
    padding: 8px 16px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}

.flight-stats {
    display: flex;
    gap: 20px;
    margin: 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.95rem;
    white-space: nowrap;
}

.stat i {
    color: #6c757d;
}

.flight-progress {
    margin: 0;
    width: 200px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.flight-torn .progress-fill {
    background: #28a745;
}

.flight-country .progress-fill {
    background: #28a745;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-color: #28a745;
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-color: #dc3545;
}

.notification-error i {
    color: #dc3545;
}

.notification-info {
    border-color: #007bff;
}

.notification-info i {
    color: #007bff;
}

/* Responsive for alerts */
@media (max-width: 768px) {
    .alerts-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-alert-section {
        justify-content: center;
    }
    
    .notification-logos {
        justify-content: center;
    }
    
    .alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .alert-details {
        grid-template-columns: 1fr;
    }
    
    .alert-actions {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ========================================
   PROFITS PAGE STYLES
   ======================================== */

/* Configuration Panel */
.config-panel {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.config-panel form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.form-group-wide {
    flex: 100%;
}

.form-group label {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select {
    background: #0d0d0d;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc3545;
}

/* Filters Section */
.filters-section {
    background: #0d0d0d;
    border-radius: 8px;
    padding: 20px;
}

.filters-section h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.filter-group h4 {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn-small {
    background: #1a1a1a;
    border: 2px solid #444;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn-small.on {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.filter-btn-small.off {
    background: #333;
    border-color: #555;
    color: #777;
    opacity: 0.6;
}

.filter-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Results Container */
.results-container {
    margin-top: 20px;
}

.results-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.results-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

/* Country Cards */
.country-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.country-card:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #1a1a1a;
    transition: background 0.3s ease;
}

.country-header:hover {
    background: #222;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-flag {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #444;
}

.country-info h3 {
    margin: 0;
    color: #dc3545;
    font-size: 20px;
}

.country-meta {
    color: #999;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.country-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}

.stat-value.profit {
    color: #4CAF50;
}

.toggle-icon {
    color: #dc3545;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.country-details {
    padding: 0 20px 20px 20px;
    background: #0d0d0d;
}

/* Items Table */
.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.items-table thead {
    background: #1a1a1a;
}

.items-table th {
    padding: 12px;
    text-align: left;
    color: #dc3545;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
}

.items-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
    color: #ccc;
    font-size: 14px;
}

.item-row.available {
    background: rgba(76, 175, 80, 0.05);
}

.item-row.unavailable {
    background: rgba(108, 117, 125, 0.05);
    opacity: 0.6;
}

.item-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.items-table .profit {
    color: #4CAF50;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-yes {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-no {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

/* Timeline */
.timeline-row {
    background: #0d0d0d !important;
}

.timeline-container {
    padding: 20px;
    height: 200px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    color: #444;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ccc;
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

/* Donators Page Styles */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: #dc3545;
}

.stat-content h3 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-content p {
    color: #ccc;
    font-size: 0.9rem;
}

.donation-encouragement {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.encouragement-content h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

.encouragement-content ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.encouragement-content li {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.encouragement-content li i {
    color: #dc3545;
    margin-right: 10px;
    width: 20px;
}

.donation-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    font-size: 1.2rem;
    padding: 16px 32px;
}

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

.donators-section h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.donators-list {
    display: grid;
    gap: 20px;
}

.donator-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.donator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.donator-card.top-1 {
    border-color: #ffd700;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2415 100%);
}

.donator-card.top-2 {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
}

.donator-card.top-3 {
    border-color: #cd7f32;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2215 100%);
}

.donator-rank {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.rank-number {
    color: #dc3545;
    font-weight: bold;
}

.donator-info {
    flex: 1;
}

.donator-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.donator-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.total-amount {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

.donation-count {
    color: #ccc;
    font-size: 0.9rem;
}

.last-donation {
    color: #999;
    font-size: 0.85rem;
}

.recent-donations {
    margin-bottom: 40px;
}

.recent-donations h2 {
    color: #dc3545;
    margin-bottom: 20px;
}

.donations-list {
    display: grid;
    gap: 15px;
}

.donation-item {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.donation-item:hover {
    border-color: #dc3545;
}

.donation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.donor-name {
    font-weight: 600;
}

.donation-amount {
    color: #4CAF50;
    font-weight: bold;
}

.donation-message {
    font-style: italic;
    color: #ccc;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.donation-date {
    color: #999;
    font-size: 0.85rem;
}

.no-donations,
.no-recent {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-donations i,
.no-recent i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.no-donations h3 {
    color: #fff;
    margin-bottom: 10px;
}

.thank-you {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.thank-you h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

.thank-you p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-footer {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.contact-footer h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.contact-footer p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-footer a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

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

.contact-icon {
    color: #dc3545;
}

/* Coming Soon Page Styles */
.coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin: 40px 0;
}

.coming-soon-content {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.coming-soon-content h2 {
    color: #dc3545;
    font-size: 2rem;
    margin-bottom: 15px;
}

.coming-soon-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.features-preview {
    margin-top: 30px;
    text-align: left;
}

.features-preview h3 {
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.features-preview ul {
    list-style: none;
    padding: 0;
}

.features-preview li {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.features-preview li i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Analytics Page Styles */
.controls-section {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.filter-select {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #dc3545;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: #dc3545;
}

.card-content h3 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 5px;
}

.card-content p {
    color: #ccc;
    font-size: 0.9rem;
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
}

.chart-container h3 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-container,
.recent-activity {
    background: #1a1a1a;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
}

.stats-container h3,
.recent-activity h3 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.stat-name {
    color: #ccc;
}

.stat-value {
    color: #4CAF50;
    font-weight: bold;
}

.activity-table {
    overflow-x: auto;
}

.activity-table table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    background: rgba(220, 53, 69, 0.2);
    padding: 10px;
    text-align: left;
    color: #dc3545;
    font-weight: 600;
}

.activity-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.activity-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .country-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .items-table {
        font-size: 12px;
    }
    
    .items-table th,
    .items-table td {
        padding: 8px;
    }
}
