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

/* General styles */


/* Menu styles */
nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #333;
}

nav .menu li {
    position: relative;
}

nav .menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    background-color: #333;
}

/* Hover effect for menu items */
nav .menu li:hover > a {
    background-color: #444;
}

/* Submenu (hidden by default) */
nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

nav .submenu li a {
    padding: 12px 20px;
    color: #fff;
    background-color: #444;
}

nav .submenu li a:hover {
    background-color: #555;
}

/* Show submenu when hovering over parent */
nav .has-submenu:hover .submenu {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .menu {
        flex-direction: column;
        width: 100%;
    }

    nav .menu li {
        width: 100%;
    }

    /* Make submenu horizontal on small screens */
    nav .has-submenu {
        position: static;
    }

    nav .submenu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: #333;
    }

    nav .has-submenu:hover .submenu {
        display: block;
    }

    /* Add a mobile toggle menu icon */
    nav .menu li a.mobile-toggle {
        display: none;
    }
}

/* Mobile menu toggle */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
    }
    .menu li a {
        padding: 12px;
        text-align: center;
    }
    .menu li a.mobile-toggle {
        display: block;
        background-color: #444;
        padding: 15px;
        cursor: pointer;
    }
    .menu.show {
        display: flex;
    }
}


.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

.dashboard-header p {
    font-size: 1.2rem;
    margin-top: 10px;
}


/* Login Container */
.login-container {
    align-self: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #218838;
}

/* Error Box */
.error-box {
    background: red;
    color: white;
    padding: 10px;
    margin: 10px auto;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    font-weight: bold;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    padding: 0 10px;
}


/* Responsive Design */
@media (max-width: 600px) {
    .login-container {
        width: 90%;
    }

    .error-box {
        width: 90%;
    }
}



.btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #218838;
}


/* Container for the page content */
.container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* Reporting Container */
.rep-container {
    background-color: white;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* Header styles */
h1 {
    text-align: center;
    color: #2c3e50;
}

h2 {
    text-align: center;
    color: hsl(0, 0%, 80%);
    background-color: hsl(240, 100%, 15%);
}

/* Form styles */
form {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 5px;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
}

/* Message styling */
.message {
    background-color: #e9f7ef;
    color: #2c3e50;
    padding: 10px;
    border: 1px solid #2c3e50;
    border-radius: 5px;
    text-align: center;
}


/* Basic menu styling */
nav .menu {
    align-self: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #333 !important;
}

nav .menu li {
    position: relative;
}

/* Style for menu links */
nav .menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    background-color: #333;
}

/* Hover effect for main menu links */
nav .menu li:hover > a {
    background-color: #444;
}

/* Submenu (hidden by default) */
nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Submenu items styling */
nav .submenu li {
    width: 100%;
}

nav .submenu li a {
    padding: 10px;
    color: #333;
    background-color: #fff;
}

/* Hover effect for submenu items */
nav .submenu li a:hover {
    background-color: #ddd;
}

/* Show submenu when hovering over parent */
nav .has-submenu:hover .submenu {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .menu {
        flex-direction: column;
        width: 100%;
    }

    nav .menu li {
        width: 100%;
    }

    /* Make submenu horizontal on small screens */
    nav .has-submenu {
        position: static;
    }

    nav .submenu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: #333;
    }

    nav .has-submenu:hover .submenu {
        display: block;
    }

    /* Add a mobile toggle menu icon */
    nav .menu li a.mobile-toggle {
        display: none;
    }
}

/* Mobile menu toggle */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
    }
    .menu li a {
        padding: 12px;
        text-align: center;
    }
    .menu li a.mobile-toggle {
        display: block;
        background-color: #444;
        padding: 15px;
        cursor: pointer;
    }
    .menu.show {
        display: flex;
    }
}





/* copied from styles_apt.css */
/* copied from styles_apt.css */

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
            display: flex;
            flex-direction: column;
            align-items: center;
                background-image: url('TMMC-LOGO-3-e1718442982303.png'), url('banner02-img.png');
                background-size: 30% auto, cover; /* First image is 20% of the width */
                background-position: left 30px, center; /* Moves the first image 20px down */
                background-repeat: no-repeat, no-repeat;

                height: 100vh; /* Makes sure the body takes the full viewport height */
                margin: 0; /* Removes any default margin */
        }

        nav {
            width: 100%;
            background: #333;
            padding: 10px 20px;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
        }
        nav ul li {
            margin: 0 15px;
        }
        nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 1rem;
        }


            .patient-container {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 700px;
                background: white;
                padding: 5px;
                border-radius: 10px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            }
            .patient-container h4 {
                text-align: center;
                font-size: 14px;
                margin-bottom: 0px;
            }
            .patient-item {
                padding: 5px;
                font-size: 12px;
                border-bottom: 1px solid #ddd;
            }
            .patient-item:last-child {
                border-bottom: none;
            }
            @media (max-width: 768px) {
                .patient-container {
                    width: 90%;
                    right: 5%;
                }
            }

            .appointments-container {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 400px;
                background: white;
                padding: 5px;
                border-radius: 10px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            }
            .appointments-container h4 {
                text-align: center;
                font-size: 14px;
                margin-bottom: 0px;
            }
            .appointment-item {
                padding: 5px;
                font-size: 12px;
                border-bottom: 1px solid #ddd;
            }
            .appointment-item:last-child {
                border-bottom: none;
            }
            @media (max-width: 768px) {
                .appointments-container {
                    width: 90%;
                    right: 5%;
                }
            }

        
        .appointmentf-container {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            margin-top: 40px;
        }
        .appointmentf-container h2 {
            text-align: center;
            color: hsl(0, 0%, 80%);
            background-color: hsl(240, 100%, 15%);
        }

        
/* Flexbox two-column layout */
        .form-group-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .form-group {
            flex: 1;
            min-width: calc(20% - 5px);
        }

        /* Make the fields stack on small screens */
        @media (max-width: 768px) {
            .form-group {
                min-width: 100%;
            }
        }

/* form-group Section */
        
        .form-group {
            margin-bottom: 10px;
        }
        .form-group label {
            display: block;
            font-weight: bold;
            color: darkblue;
            margin-bottom: 2px;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
        }
        .form-group button {
            width: 100%;
            background: #28a745;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            font-size: 1rem;
            cursor: pointer;
        }
        .form-group button:hover {
            background: #0056b3;
        }
        .close-btn {
            display: block;
            width: 100%;
            background-color: #2c3e50;
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            font-size: 1rem;
            text-align: center;
            cursor: pointer;
            margin-top: 10px;
            text-decoration: none;
        }
        .close-btn:hover {
            background: #c82333;
        }

/* Hero Section */
.hero {
/*    background: rgba(0, 0, 0, 0.6); */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    padding: 40px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.0em;
    margin-bottom: 20px;
}


/* Section copied from Dashboard styles block*/
        .user-container {
            text-align: right;
            margin-top: 50px;
        }
        .user-name {
            color: black;
            font-size: 1.2rem;
            font-weight: bold;
            padding: 10px;
            text-align: right;
        }

        .video-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            z-index: -1;
        }
        .video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


/* for centered content to use within div*/
.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Summary Box */
.summary-box {
    border: 2px solid #007BFF;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-box h3 {
    margin-bottom: 10px;
    color: #007BFF;
}

.summary-box p {
    margin: 5px 0;
    font-size: 16px;
}

