/* Base styles */
body {
    font-family: Arial, sans-serif;
    background: #fff8f0;
    margin: 0;
    padding: 0;
}

h1 {
    color: #ff9500;
    text-align: center;
    margin-bottom: 24px;
}

/* Layout styles */
.layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(120deg, #fff8f0 60%, #ff9500 100%);
}

/* Sidebar styles */
.sidebar {
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(255,149,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.sidebar-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff9500;
    padding: 32px 0 18px 0;
    text-align: center;
    background: #fff8f0;
    border-bottom: 1px solid #ffe0b2;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-menu a {
    display: block;
    padding: 18px 32px;
    color: #ff9500;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #ffe0b2;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu a.active, .sidebar-menu a:hover {
    background: #ff9500;
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 48px 32px 32px 32px;
}

/* Sidebar collapsed state */
.sidebar.collapsed { 
    width: 60px !important; 
    min-width: 60px; 
}

.sidebar.collapsed .sidebar-title, 
.sidebar.collapsed .sidebar-menu a { 
    text-align: center; 
    padding-left: 0; 
    padding-right: 0; 
}

.sidebar.collapsed .sidebar-menu a { 
    font-size: 0.9em; 
}

.sidebar.collapsed .sidebar-title { 
    font-size: 1em; 
    padding: 16px 0; 
}

.sidebar.collapsed .sidebar-menu a span { 
    display: none; 
}

/* Mobile responsive */
@media (max-width: 800px) {
    .layout { 
        flex-direction: column; 
    }
    
    .sidebar { 
        width: 100%; 
        flex-direction: row; 
        box-shadow: none; 
        border-bottom: 1px solid #ffe0b2; 
    }
    
    .sidebar-title { 
        display: none; 
    }
    
    .sidebar-menu { 
        flex-direction: row; 
        width: 100%; 
    }
    
    .sidebar-menu a { 
        flex: 1; 
        text-align: center; 
        border-bottom: none; 
        border-right: 1px solid #ffe0b2; 
        padding: 16px 0; 
    }
    
    .sidebar-menu a:last-child { 
        border-right: none; 
    }
    
    .sidebar.collapsed { 
        width: 0 !important; 
        display: none; 
    }
}

/* Form and filter styles */
form, .filters {
    background: #fff;
    padding: 20px;
    margin: 30px auto 20px auto;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,149,0,0.08);
}

.filters {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,149,0,0.08);
    padding: 20px 30px 10px 30px;
    margin: 30px auto 20px auto;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filters label {
    color: #ff9500;
    font-weight: bold;
}

/* Input and button styles */
input, button, select {
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ff9500;
    font-size: 1em;
}

.filters input[type="date"], 
.filters input[type="text"], 
.filters select {
    border: 1px solid #ff9500;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 1em;
}

button, .logout {
    background: #ff9500;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover, .logout:hover {
    background: #e07c00;
}

.filters button {
    background: #ff9500;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.filters button:hover {
    background: #e07c00;
}

/* Table styles */
table {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(255,149,0,0.10);
    width: 90%;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
}

th, td {
    padding: 12px 10px;
    text-align: center;
}

th {
    background: #ff9500;
    color: #fff;
    font-size: 1.1em;
}

tr:nth-child(even) {
    background: #fff3e0;
}

tr:hover {
    background: #ffe0b2;
}

/* Page title styles */
.page-title {
    font-size: 2em;
    font-weight: bold;
    color: #ff9500;
    margin: 0 auto 24px auto;
    text-align: center;
}

/* Dashboard specific styles */
.dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.dashboard-link {
    display: block;
    background: #ff9500;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(255,149,0,0.10);
    transition: background 0.2s;
}

.dashboard-link:hover {
    background: #e07c00;
}

/* Home specific styles */
.main-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff9500 60%, #fff8f0 100%);
    border-radius: 12px;
    padding: 18px 36px;
    margin: 0 auto 30px auto;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(255,149,0,0.10);
    text-align: center;
    max-width: 420px;
}

.main-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logout button styles */
.logout {
    display: block;
    width: 160px;
    margin: 0 auto 30px auto;
    background: #ff9500;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(255,149,0,0.10);
    transition: background 0.2s;
}

.logout:hover {
    background: #e07c00;
}

/* Form elements */
label {
    color: #ff9500;
    font-weight: bold;
}

/* Categories specific styles */
.categories-table {
    width: 95%;
    margin: 0 auto 30px auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(255,149,0,0.10);
}

.categories-table th, 
.categories-table td {
    padding: 10px 8px;
    text-align: center;
}

.categories-table th {
    background: #ff9500;
    color: #fff;
    font-size: 1em;
}

.edit-percentage-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.edit-percentage-form input[type="number"] {
    width: 60px;
    text-align: right;
    margin: 0;
}

.edit-percentage-form button {
    margin: 0 0 0 6px;
    background: #ff9500;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.9em;
}
