@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;500;600;700;800;900&display=swap');

:root {

    --primaryfont: 'Nunito Sans', sans-serif;

    --bg: #f6f7fb;
    --card: #ffffff;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --text: #111827;
    --text-secondary: #6b7280;

    --border: #e5e7eb;

    --success-bg: #ecfdf3;
    --success-border: #86efac;

    --warning-bg: #fffbeb;
    --warning-border: #fcd34d;

    --error-bg: #fef2f2;
    --error-border: #fca5a5;

    --radius: 18px;

    --shadow:
        0 1px 3px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.06);

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html,
body {

    width: 100%;
    height: 100%;

}

body {

    font-family: var(--primaryfont);

    background: var(--bg);

    color: var(--text);

    -webkit-font-smoothing: antialiased;

}

div,
span,
label,
input,
select,
textarea,
button,
h1,
h2,
h3,
h4,
h5,
h6,
p {

    font-family: var(--primaryfont);

}

input,
select,
textarea {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: white;

    font-size: 15px;

    transition: .2s;

}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #93c5fd;

    box-shadow:
        0 0 0 4px
        rgba(37,99,235,.08);

}

label {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 700;

    color: var(--text);

}

button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 14px;

    padding: 14px 18px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.btn-primary {

    background: var(--primary);

    color: white;

}

.btn-primary:hover {

    background: var(--primary-hover);

    transform: translateY(-1px);

}

/* Login Page */

.login-body {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

}

.login-parent {

    width: 420px;

    background: white;

    border-radius: 24px;

    box-shadow: var(--shadow);

    border: none;

    padding: 25px;

}

.login {

    width: 100%;

}

.login-input {

    margin-bottom: 15px;

}

.center-title {

    text-align: center;

    margin-bottom: 20px;

}

/* page */
.page {

    max-width: 1400px;

    margin: 0 auto;

}

.dssb {

    display: flex;

    height: 100vh;

    overflow: hidden;

}

.dsb-panel {

    width: 260px;

    min-width: 260px;

    flex-shrink: 0;

}

.dsb-page {

    flex: 1;

    overflow-y: auto;

    padding: 40px;

}

/* Error Success and Warning */

.error {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    border: 1px solid red;
    background-color: #FAECEE;
    padding: 10px;
}

.warning {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    border: 1px solid orange;
    background-color: #FBF7DF;
    padding: 10px;
}

.success {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    border: 1px solid green;
    background-color: #E8F6EA;
    padding: 10px;
}

/* Headings */

.pg-heading-centre {
    text-align: center;
}

.pg-subtitle {
    margin-bottom: 15px;
}

.pg-subtitle-centre {
    margin-bottom: 15px;
    text-align: center;
}

/* Notification Page */

.noti-body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.noti-header-error {
    display: flex;
    align-items: center;
    width: 500px;
    border: 2px solid black;
    background-color: #FAECEE; 
    padding: 5px;
}

.noti-header-general {
    display: flex;
    align-items: center;
    width: 500px;
    border: 2px solid black;

    padding: 5px;
}

.days-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(110px, 1fr)
        );

    gap: 12px;

    margin-top: 15px;

}

.loading-overlay {

    position: fixed;

    inset: 0;

    background: rgba(255,255,255,0.85);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 99999;

}

.loading-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    padding: 30px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.15);

}

.spinner {

    font-size: 48px !important;

    animation:
        spin 1s linear infinite;

}

@keyframes spin {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}

.day-item {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    cursor: pointer;

}

.day-item:hover {

    background: #f9fafb;

}

.day-item input {

    width: auto;

    margin: 0;

}

.days-actions {

    display: flex;

    gap: 10px;

    margin-top: 15px;

}

.days-actions button {

    padding: 8px 12px;

}

.noti-context {
    display: flex;
    flex-direction: column;
    width: 500px;
    border-top: 0px;
    border-left: 2px solid black;  
    border-right: 2px solid black;  
    border-bottom: 2px solid black;
    padding: 10px;
    margin-bottom: 30px;
}

.noti-btn {
    width: auto;
    margin-top: 10px;
    align-self: flex-end;
}

/* Image based buttons */
/* <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" /> */



.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

}

.stat-card {

    background: white;

    border-radius: 20px;

    padding: 24px;

    box-shadow: var(--shadow);

}

.stat-value {

    font-size: 38px;

    font-weight: 800;

}

.stat-label {

    margin-top: 5px;

    color: var(--text-secondary);

}

.img-btn {



    width: 120px;
    height: 90px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 8px;

    padding: 12px;

    color: black;

    cursor: pointer;

}

.img-btn:hover {

    cursor: pointer;

}

.img-btn span {

    font-size: 28px !important;

    color: black;

}

.img-btn label,
.img-btn p,
.img-btn div {

    font-size: 14px;

    font-weight: 500;

    color: black;

    text-align: center;

    line-height: 1.2;

}

.img-btn-nextto {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}

.img-btn-maincentre {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

}

/* Administation pages */

.card {

    background: white;

    border-radius: 20px;
    border: 1px solid #e5e7eb;

    padding: 25px;

}

.success,
.warning,
.error {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    border-radius: 16px;

    margin-bottom: 12px;

}

.success {

    background: var(--success-bg);

    border: 1px solid var(--success-border);

}

.warning {

    background: var(--warning-bg);

    border: 1px solid var(--warning-border);

}

.error {

    background: var(--error-bg);

    border: 1px solid var(--error-border);

}

.admin {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
}

.admin-panel {
    width: 20%;   
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.admin-side-nav {
    display: flex;
    flex-direction: column;    
}

.admin-page {
    width: 80%;
    padding-left: 20px;
}

.admin-btns {

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 5px;

    padding: 14px 16px;

    margin-bottom: 8px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #f3f4f6;

    color: #374151;

    font-size: 15px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;


}

.admin-btns .material-symbols-outlined {

    font-size: 22px;
    flex-shrink: 0px;
    color: black;

    position: relative;
    top: -2px;

}

/* Overlay */

.create-appointment {

    display: flex;
    flex-direction: column;
    gap: 20px;

}

.form-row {

    margin-top: 8px;

    display: flex;

    gap: 20px;

    align-items: flex-start;

}
.form-row .form-group:first-child {

    flex: 1;

}

.form-row .form-group:last-child {

    flex: 1;

}

.form-group {

    margin-bottom: 5px;

}

.form-group label {

    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 600;

    color: #374151;

}

.create-appointment {

    display: flex;
    flex-direction: column;
    gap: 24px;

    padding: 10px;

}

.lock-section {

    padding: 18px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #f8fafc;

}

.btn-primary:hover {

    background: #1d4ed8;

    transform: translateY(-1px);

}

.btn-primary .material-symbols-outlined {

    font-size: 18px;

}

/* OVERLAYS ?> CARDS */

        .lock-container {

            max-width: 700px;
            margin: 40px auto;
            padding: 20px;

        }

        .lock-card {

            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,.1);

        }

        .lock-card h2 {

            margin-top: 0;

        }

        .lock-details {

            margin-top: 20px;
            line-height: 1.8;

        }

        .lock-note {

            margin-top: 15px;
            padding: 15px;
            background: #f5f5f5;
            border-radius: 8px;

        }

        .actions {

            margin-top: 25px;

        }

        .btn-remove {

            background: #dc3545;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;

        }

        .btn-remove:hover {

            opacity: 0.9;

        }

.breadcrumb {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 500;

    color: #6b7280;

}

.breadcrumb a {

    color: #6b7280;

    text-decoration: none;

}

.breadcrumb a:hover {

    color: #374151;

}

.breadcrumb strong {

    color: #374151;

    font-weight: 600;

}