* {
    margin: 0;
    padding: 0;
}

@keyframes clickAnim {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(5);
        opacity: 0;
    }
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #1f6f78;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 5s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.col-md-12 {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: sans-serif;
}

/* Navbar */
.navbar {

    background: #23585a;
    color: white;
}

.logo-center {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

/* MOBILE FIX */
@media (max-width: 991px) {
    .logo-center {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: -40px;
        margin-left: 30px;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 30px;
    transition: 0.3s ease;
    color: white;
}

/* PUSH CONTENT WHEN PANEL OPENS */
.layout.active .main-content {
    margin-left: 320px;
}

/* ===== LEFT PANEL ===== */
.settings-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #2e7072;
    color: white;
    padding: 25px 20px;
    transition: 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.settings-panel.active {
    left: 0;
}

/* ===== USER ===== */
.user-box {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.user-box img {
    width: 50px;
    border-radius: 50%;
}

/* ===== MENU ITEMS ===== */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* ===== SWITCH ===== */
.switch {
    position: relative;
    width: 45px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: red;
    border-radius: 50px;
}

.slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

input:checked+.slider {
    background: #22c55e;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.dropdown-box {
    color: white;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.dropdown-content {
    display: none;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);

}

.dropdown-content.active {
    display: block;
}

.option {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    cursor: pointer;
}

.option input {
    display: none;
}

.radio {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
}

.option input:checked+.radio {
    background: #00a23b;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
    .layout.active .main-content {
        margin-left: 0;
    }
}

/* Footer */
.footer-section {
    margin-top: 20px;
    background: #f2f8f9;
}

.footer-section h6 {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    font-size: 13px;
    color: rgb(70, 70, 70);
    margin-bottom: 8px;
    cursor: pointer;
}

.footer-section ul li:hover {
    color: rgb(58, 58, 58);
}

.footer-section a {
    color: #000000;
    font-size: 18px;
}

.footer-section a:hover {
    color: rgb(0, 0, 0);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    background: white;
    border-radius: 30px;
    padding: 10px 20px;
    width: 300px;
    border: none;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-weight: 500;
}

.tab.active {
    background: white;
    color: #2b7f89;
}

/* ===== CARD ===== */
.appointment-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 200px;
}

/* LEFT */
.app-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-left img {
    width: 60px;
    border-radius: 10px;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
}

.app-meta {
    font-size: 13px;
    color: #777;
}

/* STATUS */
.status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status.upcoming {
    background: #e6f7ff;
    color: #0077b6;
}

.status.completed {
    background: #e6ffe6;
    color: #2e7d32;
}

.search-box {
    background: rgb(255, 255, 255);
    border: 1px solid grey;
    border-radius: 100px;
    padding: 10px 20px;
    width: 300px;
}

.status.cancelled {
    background: #ffe6e6;
    color: #c62828;
}

/* ACTIONS */
.actions button {
    margin-left: 8px;
    border-radius: 8px;
    border: none;
    padding: 6px 12px;
}

.btn-primary-custom {
    background: #2b7f89;
    color: white;
}

.btn-danger-custom {
    background: #c62828;
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid #2b7f89;
    color: #2b7f89;
}