/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff; /* White background */
    min-height: 100vh;
    color: #333333; /* Dark text for contrast */
    line-height: 1.6;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff; /* White background */
    padding: 20px 0;
}

.container {
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f0f0f0; /* Slightly off-white for container */
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header Enhancements */
.header {
    background: linear-gradient(145deg, #e0e0e0, #cccccc); /* Light grey gradient */
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: none;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    color: #007bff; /* Blue */
    text-shadow: 2px 2px 8px rgba(0, 123, 255, 0.2);
    margin-bottom: 15px;
}

.header p {
    font-size: 1.4rem;
    color: #666666;
    margin-bottom: 25px;
}

/* Bridge Status Section */
#bridge-status, #palestinian-bridge-status {
    font-size: 1.3rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bridge-status span, #palestinian-bridge-status span {
    margin: 0 5px;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s infinite alternate;
}

.status-open {
    background-color: #2ecc71; /* Green for open */
}

.status-closed {
    background-color: #e74c3c; /* Red for closed */
}

.status-limited {
    background-color: #f1c40f; /* Yellow for limited */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

/* Grid Layout for Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Card Enhancements */
.card {
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8); /* Light grey gradient for cards */
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.05); /* Blue overlay on hover */
    z-index: 1;
    pointer-events: none;
    transform: scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
}

.card:hover::before {
    transform: scale(2);
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}

.card h2 {
    font-size: 1.8rem;
    color: #007bff; /* Blue */
    font-weight: 700;
    margin-right: 15px;
}

/* Icon Styles */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: rotate(5deg) scale(1.1);
}

.news-icon,
.schedule-icon,
.traffic-icon,
.taxi-icon,
.weather-icon,
.alerts-icon {
    background: linear-gradient(45deg, #007bff 0%, #0056b3 100%); /* Blue gradient */
    color: #ffffff;
}

/* Button Styles */
.refresh-btn {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient */
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #e0e0e0 0%, #cccccc 100%); /* Light grey gradient */
    color: #007bff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* JETT Info Card */
.jett-info {
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8); /* Light grey gradient */
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

.jett-info h2 {
    color: #007bff;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.jett-info p {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.jett-info a {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.jett-info a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Traffic and Weather enhancements */
.traffic-level, .weather-item {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.traffic-bar {
    height: 10px;
    border-radius: 5px;
    background: #ccc;
}

.stat-item {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.stat-value {
    color: #007bff;
}

/* Alerts */
.alert {
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.alert-warning {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    color: white;
}

.alert-title {
    color: #007bff;
}

.alert-warning .alert-title {
    color: white;
}

.alert-recommendations li:before {
    color: #007bff;
}

/* News Item */
.news-item {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 18px;
    border-right: 5px solid #007bff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.news-item:hover {
    background: #e8e8e8;
    transform: translateX(5px);
}

.news-date {
    color: #666666;
}

.news-title {
    color: #007bff;
}

.news-content {
    color: #333333;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
    padding: 15px;
    text-align: center;
    border-bottom: none;
}

.schedule-table th {
    background: linear-gradient(45deg, #f8f8f8, #e8e8e8);
    font-weight: 700;
    color: #007bff;
    border-radius: 10px;
}

.schedule-table td {
    background: #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333333;
}

/* Taxi Info Section */
.taxi-item {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 15px;
    border-right: 5px solid #007bff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.taxi-item span {
    color: #007bff;
}

.taxi-item a {
    color: #007bff;
}

.taxi-contact {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Blue gradient */
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
}

.taxi-contact a {
    color: #ffffff;
}

/* Weather Section */
.weather-item {
    background: #f8f8f8;
    color: #333333;
}

.weather-value {
    color: #007bff;
}

.weather-label {
    color: #666666;
}

/* Alerts Section (Updated to be just the Sadaqa Jariya message) */
.sadaqa-jariya-message {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Blue gradient */
    color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1.1rem;
    }
    .card {
        padding: 25px;
    }
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .refresh-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .jett-info h2 {
        font-size: 1.6rem;
    }
    .jett-info p {
        font-size: 1.1rem;
    }
    .jett-info a {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card {
        padding: 20px;
    }
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .refresh-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .jett-info h2 {
        font-size: 1.4rem;
    }
    .jett-info p {
        font-size: 0.9rem;
    }
}

.alert-saturday-closed {
    background-color: #e74c3c; /* Red for warning */
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    animation: fadeIn 1s ease-out;
}

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


