/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
html{
    scroll-behavior: smooth;
}

/* ================= BODY ================= */
body {
    background-color: #f4f7fb;
    color: #333;
}

/* ================= NAVBAR DESIGN ================= */

header{
    position: sticky;
    top: 0;
    z-index: 9;
}
.navbar {
    background-color: #0d6efd;
    padding: 15px 8%;
    color: white;

  
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

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

.admin-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}



/* ================= HERO DESIGN ================= */
.hero {
    background: linear-gradient(to right, #0d6efd, #4da3ff);
    padding: 70px 20px;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero p {
    margin-bottom: 20px;
}

.hero button {
    padding: 10px 20px;
    border: none;
    background: white;
    color: #0d6efd;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.hero button:hover {
    background-color: #e6e6e6;
}
 .hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn {
    background-color: white;
    color: #0d6efd;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: #e6e6e6;
}

.secondary-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* ================= SECTION COMMON ================= */
section {
    padding: 60px 8%;
}

section h2 {
    margin-bottom: 25px;
    font-size: 28px;
}

/* ================= DOCTOR CARD ================= */
.doctor-card {
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-6px);
}

.doctor-card h3 {
    margin-bottom: 10px;
}

.doctor-card p {
    font-size: 14px;
    color: #666;
}

.doctor-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    object-position: top;
}

/* ================= DATE PICKER ================= */

.date-picker {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.date-picker label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.date-picker input[type="date"] {
    padding: 10px 12px;
    border: 2px solid #0d6efd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Hover effect */
.date-picker input[type="date"]:hover {
    border-color: #084298;
}

/* Focus effect */
.date-picker input[type="date"]:focus {
    box-shadow: 0 0 0 3px rgba(13,110,253,0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .date-picker {
        width: 100%;
    }

    .date-picker input[type="date"] {
        width: 100%;
    }
}

/* ================= SLOT STYLE ================= */
.slot {
    padding: 10px 18px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.slot:hover {
    background-color: #218838;
}

.slot.booked {
    background-color: #dc3545;
    pointer-events: none;
}
.slot.booked {
    background-color: #dc3545;
    pointer-events: none;
    color: white;
}

/* ================= FORM DESIGN ================= */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #084298;
}

/* ================= CONFIRMATION ================= */
#confirmation-message {
    margin-top: 20px;
    font-weight: bold;
    color: green;
}
i {
  margin-right: 6px;
}

.slot.active {
    background-color: #0d6efd;  /* Blue */
    color: white;
}

.doctor-card.selected {
    border: 2px solid #0d6efd;
}

/* ================= FOOTER ================= */
footer {
    background-color: #0d6efd;
    color: white;
    padding: 15px;
    text-align: center;
}


