﻿ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafb;
}

/*.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}*/

/* Header */
header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

    .logo::before {
        content: "🏥";
        margin-right: 10px;
        font-size: 2rem;
    }

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.3s ease;
    }

        .nav a:hover {
            opacity: 0.8;
        }

/* Page Title */
.page-title {
    background: white;
    padding: 2rem 0;
    border-bottom: 3px solid #e8f4f8;
}

    .page-title h1 {
        color: #2c5aa0;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .page-title p {
        color: #666;
        font-size: 1.1rem;
    }

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e8f4f8;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .action-card:hover {
        border-color: #2c5aa0;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
    }

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.action-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.action-description {
    color: #666;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

/* Appointment Form */
.appointment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-title {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 15px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: #e8f4f8;
        z-index: 1;
    }

    .step.active:not(:last-child)::after {
        background: #2c5aa0;
    }

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8f4f8;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #2c5aa0;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .form-section.active {
        display: block;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: #2c5aa0;
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.department-card {
    padding: 1rem;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .department-card:hover,
    .department-card.selected {
        border-color: #2c5aa0;
        background: #e8f4f8;
    }

.department-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.department-name {
    font-weight: 600;
    color: #333;
}

.doctor-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.doctor-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .doctor-card:hover,
    .doctor-card.selected {
        border-color: #2c5aa0;
        background: #e8f4f8;
    }

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.doctor-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.25rem;
}

.doctor-info p {
    color: #666;
    font-size: 0.9rem;
}

.calendar-container {
    margin-top: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .calendar-nav:hover {
        background: #1e3f73;
    }

.calendar-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8f4f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .calendar-day:hover {
        background: #e8f4f8;
    }

    .calendar-day.disabled {
        color: #ccc;
        cursor: not-allowed;
    }

    .calendar-day.selected {
        background: #2c5aa0;
        color: white;
    }

    .calendar-day.today {
        background: #28a745;
        color: white;
    }

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid #e8f4f8;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .time-slot:hover,
    .time-slot.selected {
        border-color: #2c5aa0;
        background: #2c5aa0;
        color: white;
    }

    .time-slot.unavailable {
        background: #f8d7da;
        color: #721c24;
        cursor: not-allowed;
    }

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

    .btn-primary:hover {
        background: #1e3f73;
    }

.btn-secondary {
    background: #e8f4f8;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

    .btn-secondary:hover {
        background: #2c5aa0;
        color: white;
    }

.btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #e8f4f8;
    padding-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafb;
    border-radius: 8px;
}

.contact-icon {
    font-size: 1.5rem;
    color: #2c5aa0;
}

.contact-details h4 {
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #666;
    font-size: 0.9rem;
}

.emergency-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

    .emergency-banner h3 {
        margin-bottom: 0.5rem;
    }

.emergency-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.insurance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insurance-item {
    padding: 0.75rem;
    background: #f8fafb;
    border-radius: 6px;
    border-left: 4px solid #2c5aa0;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.appointment-summary {
    background: #f8fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-weight: 600;
    color: #666;
}

.summary-value {
    color: #333;
}

/* Footer */
footer {
    background: #1e3f73;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e8f4f8;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .footer-section a:hover {
        opacity: 0.7;
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2c5aa0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .department-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .appointment-form {
        padding: 1.5rem;
    }

    .form-steps {
        padding: 0;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
