@import url("./base/variables.css");
@import url("./base/reset.css");
@import url("./base/typography.css");
@import url("./base/global.css");

@import url("./layout/container.css");
@import url("./layout/header.css");
@import url("./layout/footer.css");

@import url("./components/buttons.css");
@import url("./components/forms.css");
@import url("./components/tables.css");
@import url("./components/modal.css");
@import url("./components/pagination.css");

@import url("./pages/login.css");
@import url("./pages/doctors.css");
@import url("./pages/appointments.css");
@import url("./pages/setup.css");
@import url("./pages/new.css");
@import url("./pages/newDoc.css");
@import url("./layout/navbar.css");

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 1200px) {
    .container {
        width: auto;
    }
}


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

.userBlock {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero {
    background: white;
    padding: 60px 0;
    display: flex;
    align-items: center;
}

.heroText {
    flex: 3;
}

.heroText h1 {
    font-size: 48px;
    margin: 0;
}

.heroImage {
    flex: 2;
    text-align: center;
}

.heroImage img {
    width: 100%;
    border-radius: 10px;
    max-width: 400px;
}

.doctors {
    background: white;
    padding: 50px 0;
    flex: 1;
}

.sectionTitle {
    font-size: 36px;
    margin-bottom: 30px;
}

.buttonAdd {
    background: #303030;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 35px;
    font-size: 25px;
}



.form {
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 35px auto;
    border: medium solid #1f4470;
    border-radius: 30px;
}

.form h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.info {
    background: whitesmoke;
    padding: 40px 0;
    display: flex;
    gap: 20px;
}

.infoBlock {
    flex: 1;
    padding: 20px;
}

.infoBlock h3 {
    margin-top: 0;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .form {
        max-width: 100%;
        padding: 24px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .info {
        flex-direction: column;
    }
}


.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content > * {
    flex: 1;
}

.headerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buttonDone {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.buttonDone:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

.tableCaption {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #444;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    text-decoration: none;
    color: #303030;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    transition: background 0.2s;
    box-sizing: border-box;
}


.page-link:hover {
    background: #f0f0f0;
}

.page-link.current {
    background: #303030;
    color: white;
    pointer-events: none;
}

.danger-btn {
    background: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 16px;
    transition: 0.2s;
}

.modal {
     display: none;
    position: fixed;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #303030;
}

.modal-content p {
    margin: 10px 0;
    color: #666;
}

.appointment-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.appointment-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.appointment-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #303030;
}

.info-value {
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-actions form {
    display: inline;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel {
    background: #e0e0e0;
    color: #303030;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-confirm {
    background: #4CAF50;
    color: white;
}

.btn-confirm:hover {
    background: #45a049;
}

.table tr.late {
	background-color: #fff3cd;
}

.table tr.late:hover {
	background-color: #ffe69c;
}

@media (max-width: 640px) {
	.modal-content {
		width: 95%;
		margin: 20% auto;
		padding: 20px;
	}

	.modal-actions {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}
}
.logoutBtn {
    padding: 8px 14px;
    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.logoutBtn:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}

.logoutBtn:active {
    transform: translateY(0);
}

.logoutBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}