/* Import DMSans Font */
@font-face {
    font-family: 'DMSans';
    src: url('../fonts/DMSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Apply DMSans to Everything */
* {
    font-family: 'DMSans', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Layout */
body {
    display: flex;
    height: 100vh;
    background-color: #f8f9fa;
    padding: 20px;
    gap: 24px;
}

/* Sidebar Styling */
.sidebar {
    width: 290px;
    flex-shrink: 0;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
}

/* Logo Image */
.logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    align-self: center; /* Keeps logo centered */
}

/* Sidebar Navigation */
.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

.sidebar nav ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Sidebar Links */
.sidebar nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
    width: 100%;
}

.sidebar nav ul li a:hover {
    background: rgba(54, 117, 188, 0.2);
}

/* Icon Styles */
.sidebar-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(54, 117, 188);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* SVG Icons */
.sidebar-icon img {
    width: 20px;
    height: 20px;

}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow: auto;
    min-height: 0;
    background: #f8f9fa;
}

/* SPA content - pages inject here */
.main-content .page-loading,
.main-content .page-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #666;
    font-size: 18px;
}

.main-content .page-error {
    flex-direction: column;
    gap: 8px;
    color: #dc3545;
}

/* Buttons */
button {
    padding: 10px 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'DMSans', sans-serif !important;
    transition: transform 0.2s ease-in-out, background 0.2s ease-in-out;
}

/* Primary Buttons */
.add-btn, .save-btn {
    background: rgb(54, 117, 188);
    color: white;
    font-weight: bold;
}

.add-btn:hover, .save-btn:hover {
    background: rgba(54, 117, 188, 0.8);
    transform: scale(1.05);
}

/* Edit Button */
.edit-btn {
    background: rgb(255, 193, 7);
    color: black;
}

.edit-btn:hover {
    background: rgba(255, 193, 7, 0.8);
    transform: scale(1.05);
}

/* Delete Button */
.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}