@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap");

/* -------- VARIABLES -------- */
:root {
    --color-budget: #b36a9f;
    --color-guest: #7fa99b;
    --color-planning: #c98b5f;
    --color-presta: #5b9cea;
    --color-dark: #3f3f3f;
    --color-danger: #d16666;
    --color-border: #e0e0e0;
    --color-bg-light: #fafafa;
    --radius: 10px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* -------- GLOBAL -------- */
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f7f8fa;
}

.widget-body {
    background-color: #f7f8fa;
    margin-top: 100px;
}

/* -------- APP SIDEBAR -------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transition: width 0.25s ease;
    overflow: hidden;
    z-index: 1000;
}

.sidebar:hover {
    width: 240px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 20px 20px 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar:hover .sidebar-title {
    opacity: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 14px;
    font-size: 18px;
    font-weight: 500;
    color: #3b4a6b;
    text-decoration: none;
    border-radius: 6px;
    margin: 4px 0;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.nav-item .material-symbols-outlined {
    font-size: 26px;
    color: #000000;
    transition: 0.15s;
}

.nav-text {
    opacity: 0;
    margin-left: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
    width: auto;
    margin-left: 6px;
}

.nav-item:hover {
    background-color: #e8ecff;
    color: #1f2a40;
}

.nav-item:hover #home-logo-sidebar {
    color: #000000;
}

.nav-item:hover #budget-logo-sidebar {
    color: var(--color-budget);
}

.nav-item:hover #presta-logo-sidebar {
    color: var(--color-presta);
}

.nav-item:hover #guest-logo-sidebar {
    color: var(--color-guest);
}

.nav-item:hover #event-logo-sidebar {
    color: var(--color-planning);
}

.nav-item:hover #plan-de-table-logo-sidebar {
    color: #d4a843;
}

/* -------- CONTENT -------- */
.page-display {
    margin-left: 90px;
    padding: 40px;
    transition: margin-left 0.25s ease;
}

.page-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.page-title .material-symbols-outlined {
    font-size: 48px;
    margin-right: 12px;
    color: #0d6efd;
}

.page-title h1 {
    margin: 0;
    font-size: 36px;
}

/* -------- SHARED : ADD BUTTON -------- */
.add-btn {
    background-color: var(--color-dark);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.add-btn:hover {
    background-color: #2f2f2f;
    transform: translateY(-1px);
}

.add-btn:active {
    transform: translateY(0);
}

/* -------- SHARED : MODAL BUTTONS -------- */
.modal-submit-btn,
.modal-submit-btn:visited,
.modal-submit-btn:active {
    color: #fefefe;
    border: none;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 550;
    width: 100%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.modal-submit-btn:hover {
    transform: translateY(-1px);
}

.modal-delete-btn,
.modal-delete-btn:visited,
.modal-delete-btn:active {
    border: none;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 550;
    width: 100%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.modal-delete-btn:hover {
    background-color: var(--color-danger);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.modal-submit-btn:focus-visible,
.modal-delete-btn:focus-visible {
    outline: 3px solid rgba(140, 123, 107, 0.2);
    outline-offset: 2px;
}

/* -------- SHARED : SCROLLBAR -------- */
.custom-scrollbar {
    overflow-y: auto;
    padding-right: 4px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #d4cfd6;
    border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
