
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
   
    margin: 0;
    padding: 0;
    line-height: 1.6;
    
    margin: 0;
    padding: 0;
    line-height: 1.6;

    background-color:#f0f2f5;
    
    background: linear-gradient(to bottom, #f4f6f9, #e9edf2);

}


.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background-color: white;
    color: #eb1b23;
    height: 64px;

    padding: 16px 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-family: sans-serif;
    font-size: 30px;
    font-weight: 600;
    margin: 0;
    justify-self: center;
}

.header-logo {
    width: 85px;
    height: auto;
    justify-self: start;
}
.logout-button {
    justify-self: end;
}

.logout-button {
    background-color: #eb1b23;
    color: white;
    border: 1px solid #eb1b23;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}



.logout-button:hover {
    background-color: #ccc;
}
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 10px auto 60px auto;
    padding: 0 15px;
    align-items: start;
}

.profile-card {
    width: 320px;
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}

.resource-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.3s ease;
}

.profile-card:hover,
.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.profile-img {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}
.profile-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eb1b23;
    margin-bottom: 8px;
}



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

.qr-code {
    max-height: 100px;
    object-fit: contain;
}


.profile-details {
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-details p {
    margin: 4px 0;
}


.safe {
    color: #2ecc71;
    font-weight: 500;
}

.unsafe {
    color: #e74c3c;
    font-weight: 500;
}

.book-button {
    background: linear-gradient(135deg, #eb1b23, #ff3b3f);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235, 27, 35, 0.3);
}


.booked {
    background-color: grey;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 400px;
    margin: 20% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    display: flex;
}

.modal-image {
    flex: 1;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-details {
    flex: 2;
    padding: 10px;
    text-align: left;
}

/* Close button for the modal */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.modal-button {
    background-color: #eb1b23;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-button:hover {
    background-color: #ff3336;
}

select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}
.resource-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.3s ease;
}

.resource-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}


.resource-details {
    flex: 1;
    padding: 10px;
    text-align: left;
}
.resource-details h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.resource-details p {
    margin: 0;
}
.location-cards
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.table-section {
    margin-top: 10px;
    overflow-x: auto;
 /* Add horizontal scroll for small screens */
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.activity-table th {
    background: #eb1b23;
    color: white;
    padding: 12px;
}

.activity-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-table tr:hover {
    background: #f9f9f9;
}


footer {
    background-color: #696b6d;
    color: #fff;
    text-align: center;
    padding: 8px 14px;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
    z-index: 2000;
}

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

.custom-table th,
.custom-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.custom-table th {
    background-color: #eb1b23;
    color: #fff;
    font-weight: bold;
}

.red {
    background-color: #d92550;
}

.green {
    background-color: #3ac47d;
}

.yellow {
    background-color: #f7b924;
}

.badge {
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.table-container {
    max-width: 800px; /* Adjust the maximum width as needed */
    margin: 10px auto; /* Center the container horizontally */
    padding: 20px; /* Add some padding for spacing */
    overflow-x: auto; /* Add horizontal scrolling for small screens */
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.announcement-strip {
    background-color: #fffdb5;
    padding: 8px 0px 8px 0px;
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    justify-content: space-between;
}

.announcement-strip marquee {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    animation: marquee 15s linear infinite;
}

@media (max-width: 768px) {
    .profile-card, .resource-card {
        width: 90%;
    }
    .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    }

    .activity-table {
        font-size: 14px;
    }

    .activity-table th, .activity-table td {
        padding: 5px;
    }
}




