/* Reset & General Styles */
body {
    font-family: Arial, sans-serif;
    background: url('images/clinic_background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    width: 100%;  /* Ensure the body takes full width */
    overflow-x: hidden; /* Prevent horizontal scroll */
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}

/* Dashboard Container */
.dashboard-container {
    width: 100%;
    margin: 0;  /* Remove any margin */
    padding: 20px;
    box-sizing: border-box;  /* Ensure padding doesn't affect width */
    flex-grow: 1;  /* Allow container to expand with content */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a72;
    color: white;
    padding: 15px;
    border-radius: 0;  /* Remove rounded corners to ensure full width */
    width: 100%; /* Ensure it stretches fully */
    position: relative;
    margin: 0;  /* Remove any margin */
    box-sizing: border-box;  /* Ensure padding doesn’t affect width */
}

.dashboard-header .logo img {
    height: 40px;
}

.dashboard-header .user-info {
    text-align: center;
    flex-grow: 1; /* Allow user info section to grow */
}

.dashboard-header .hello-text {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
}

.dashboard-header .welcome-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.top-right {
    position: absolute;
    right: 15px;
    top: 15px;
    text-align: right;
    color: #fff;
}

.top-right p {
    margin: 0;
    font-size: 14px;
    padding: 2px 0;
}

.top-right .logout-btn {
    margin-top: 10px;
    display: inline-block;
}

/* Logout Button */
.logout-btn {
    background: #ff4b5c;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logout-btn:hover {
    background: #e03e50;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 45%;
    transition: 0.3s;
    margin-bottom: 20px;
}

.card h3 {
    color: #2a2a72;
    margin-bottom: 15px;
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

/* Dashboard Links */
.dashboard-link {
    display: block;
    padding: 10px;
    color: #2a2a72;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.dashboard-link i {
    margin-right: 10px;
    color: #ff4b5c;
}

.dashboard-link:hover {
    background: #2a2a72;
    color: white;
    border-radius: 5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }

    .card {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* --- Restore Login Page Styling --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #4facfe, #00f2fe); /* Gradient background */
}

.login-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    background: #4facfe;
    color: white;
    padding: 10px;
    font-size: 16px;
}

/* Footer styles */
footer {
    background-color: #333; /* Dark background for footer */
    color: white; /* White text color */
    text-align: center; /* Center the text */
    padding: 1px; /* Add some padding around the text */
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}

.badge {
    font-size: 0.75rem;
    padding: 5px 8px;
    z-index: 1;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}
