* { box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}
.container {
    max-width: 1900px;
    margin: 0 auto;
}
.header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header h1 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #333;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.tab:hover {
    color: #4CAF50;
}
.tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.year-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.year-navigation a {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.year-navigation a:hover {
    background: #45a049;
}
.year-select {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.year-select select {
    padding: 8px 15px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}
.year-select button {
    padding: 8px 20px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.year-select button:hover {
    background: #45a049;
}
.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-section h3 {
    margin-top: 0;
    color: #4CAF50;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-group input, .form-group select {
    width: 350px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}
.btn:hover {
    background: #45a049;
}
.btn-danger {
    background: #f44336;
}
.btn-danger:hover {
    background: #da190b;
}
.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.employee-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.employee-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.vacations-list {
    margin-top: 20px;
}
.vacation-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 4px;
}
.months-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.month-calendar {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.month-header {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
    color: #4CAF50;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}
.week-group {
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.week-header {
    background: #4CAF50;
    color: white;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}
.day-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background 0.2s;
}
.day-row:last-child {
    border-bottom: none;
}
.day-row:hover {
    background: #f9f9f9;
}
.day-row.today {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding-left: 6px;
}
.day-name {
    font-weight: bold;
    color: #666;
    font-size: 13px;
}
.day-date {
    color: #333;
    font-size: 14px;
}
.day-row.weekend {
    background: #fafafa;
}
.day-row.weekend .day-name {
    color: #d32f2f;
}
.employee-status {
    display: flex;
    gap: 4px;
}
.employee-badge {
    width: 30px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    border: 2px solid transparent;
}
.employee-badge.on-leave {
    opacity: 1;
}
.employee-badge.working {
    opacity: 0.2;
    border-color: #ddd;
}
@media (max-width: 1600px) {
    .months-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1100px) {
    .months-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 750px) {
    .months-container {
        grid-template-columns: 1fr;
    }
}