body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #e8e8e8 250px, #004080 250px); 
    padding: 10px 20px;
}

.top-left {
    display: flex;
    align-items: center;
}

.top-right {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.nav-btn {
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: transparent;
    transition: all 0.2s ease;
    margin-right: 50px;
    font-size: 1.5rem;
}

.nav-btn:hover {
    background-color: white;
    color: #001f3f;
    border: 1px solid #001f3f;
    transform: scale(1.07);
}

.site-title {
    font-size: 2.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.site-title:hover {
    text-decoration: none;
    cursor: pointer;
}

.logo {
    height: 75px;
    margin-right: 15px;
}

.top-bar .title {
    font-size: 33px;
    font-weight: bold;
    color: white
}

.top-bar .subtitle {
    font-size: 14px;
    margin-left: 10px;
    color: #cccccc
}

.container {
    padding: 40px;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16;
    cursor: pointer;
}

.alert {
    background-color: #ffcccc;
    color: #800000;
    padding: 10px;
    margin: 15px auto;
    width: 60%;
    border-radius: 5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 20px;
    
}

.card {
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: scale(1.03);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.back-button {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: #e0e0e0;
}

@media (max-width: 800px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.patient-table tr {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.patient-table tr:hover {
    background-color: #e8f0fe;     
    transform: scale(1.01);         
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1;
}


.site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #ccc;
    padding: 15px 20px;
    text-align: center;
    margin-top: auto;
}

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

.footer-logo {
    height: 40px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

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

.footer-logo:hover {
    transform: scale(1.05);
}

.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    line-height: 1.6;
    color: #333;
}

.terms-container h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #004080
}

.terms-container h2 {
    font-size: 1.2rem;
    margin-top: 30px;
    color: #002b5c;
}

.terms-container a {
    color: #0074D9;
    text-decoration: none;
}

.terms-container a:hover {
    text-decoration: underline;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.terms-logo {
    height: 60px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.terms-logo:hover {
    transform: scale(1.05);
}


.home-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
}

.home-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}


h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 20px;
}

