body,
html {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    color: #333;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.sidebar {
    width: 220px;
    transition: width 0.3s ease;
    background-color: #333;
    color: white;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sidebar.minimized {
    width: 50px;
    overflow: hidden;
}

.sidebar button {
    background: none;
    border: none;
    color: white;
    padding: 10px 5px;
    margin: 5px 0;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
}

.sidebar button.active-menu {
    background-color: black;
    color: white;
    font-weight: bold;
}

.sidebar.minimized button {
    text-align: center;
    padding: 10px ;
}

.sidebar.minimized button::after {
    content: attr(data-short);
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

.sidebar.minimized button {
    white-space: nowrap;
    overflow: hidden;
    text-indent: -9999px; 
}

.sidebar.minimized button::after {
    text-indent: 0;
}

.toggle-btn {
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    display: flex;
    align-items: center;  
    justify-content: center; 
    height: 30px;          
}

.sidebar-content {
    flex: 1;
}

.main{
    flex-grow: 1;
    width: calc(100% - 220px);
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    transition: margin-left 0.3s ease;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #34495e;
}

.sidebar.collapsed~.main-content {
    margin-left: 60px;
}

.section {
    display: none;
}

.section.active-section {
    display: block;
}

.tab-button {
    padding: 10px 20px;
    margin-right: 5px;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    background-color: #ddd;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s;
}
.tab-button.active-button {
  background-color: white;
  color: #007BFF;
  border: 1px solid #ccc;
  border-bottom: none;
  font-weight: bold;
  z-index: 2;
  position: relative;
}
.tab-button:hover {
    background-color: #bbb;
}

.active-button {
    background-color: #333;
    color: white;
}


.tab-content {
    display: none;
    border: 1px solid #ccc;
    background-color: white;
    padding: 20px;
    border-top: none;
    border-radius: 0 5px 5px 5px;
}

.tab-content.active {
    display: block;
}

h1 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}


form {
    width: 100%;     
    max-width: none; 
    margin-top: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button[type="submit"] {
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    font-family: monospace;
    background-color: #f1f1f1;
    padding: 10px;
    border-left: 4px solid #007BFF;
}

.result.error {
    color: red;
    border-left-color: red;
}