/* ==== Global Reset and Layout ==== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #d6ebff;
    color: #333;
    display: flex;
    flex-direction: column;
    background: url('../images/meds.jpg') no-repeat center center;
    background-size: contain;   /* Show full image */
    background-color: #d6ebff;  /* Fills gaps if aspect ratio differs */
}


.main-content {
    flex: 1;
}

/* ==== Header ==== */
.main-header {
     background-color: transparent; /* was #007BFF */
    color: #333;
    padding: 15px 20px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    margin: 0;
    font-size: 1.5em;
}

.main-header nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

.main-header nav a.logout-btn {
    color: #ffc107;
}

/* ==== Footer ==== */
footer {
    text-align: center;
    padding: 15px;
    background-color: #f0f0f0;
    font-size: 0.9em;
}

/* ==== Login Page Styling ==== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-box {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

form input, form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}

/* ==== Dashboard Content ==== */
.dashboard-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.dashboard-container {
    padding: 30px;
    max-width: 900px;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.tab-button.active {
    background-color: #007BFF;
    color: #fff;
}

.tab-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* space for the eye icon */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: #555;
}


