:root {
    --primary-blue: #004d99;
    --secondary-blue: #0066cc;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --gray: #f8f9fa;
    --text-dark: #333333;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

#wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-blue);
    color: var(--white);
    transition: all 0.3s;
    position: fixed;
    height: 100%;
    z-index: 1000;
}

#sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-blue);
}

#sidebar nav ul {
    list-style: none;
    padding: 20px 0;
}

#sidebar nav ul li {
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.2s;
}

#sidebar nav ul li:hover {
    background-color: var(--secondary-blue);
}

/* Main Area */
#main-area {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    width: 100%;
}

#main-area.full-width {
    margin-left: 0;
}

header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
}

/* Modules */
main {
    padding: 30px;
}

.module {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
    color: var(--primary-blue);
}

/* Forms */
form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 5px var(--light-blue);
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--secondary-blue);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background-color: var(--primary-blue);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

/* Dashboard */
#dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: var(--gray);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-blue);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar.active {
        margin-left: 0;
    }
    #main-area {
        margin-left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    #dashboard-content {
        grid-template-columns: 1fr;
    }
}

.search-container {
    position: relative;
    width: 350px;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #333;
}

.suggestions-box div {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.suggestions-box div:hover {
    background: var(--light-blue);
}
