* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

input[type="date"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="date"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
}

/* Выпадающий список чекбоксов */
.checkbox-dropdown {
    position: relative;
}

.checkbox-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    user-select: none;
}

.checkbox-dropdown-header:hover {
    border-color: #4CAF50;
}

.checkbox-dropdown.active .checkbox-dropdown-header {
    border-color: #4CAF50;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.checkbox-dropdown-placeholder {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.checkbox-dropdown.active .checkbox-dropdown-placeholder {
    color: #333;
    font-weight: 500;
}

.checkbox-dropdown-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.checkbox-dropdown.active .checkbox-dropdown-arrow {
    transform: rotate(180deg);
}

.checkbox-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #4CAF50;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 5px 0;
}

.checkbox-dropdown.active .checkbox-dropdown-list {
    display: block;
}

.checkbox-dropdown-list .checkbox-item {
    padding: 8px 10px;
    transition: background 0.15s;
}

.checkbox-dropdown-list .checkbox-item:hover {
    background: #f5f5f5;
    cursor: pointer;
}

.checkbox-dropdown-list .select-all-item {
    border-bottom: 1px solid #eee;
    background: #fafafa;
    font-weight: 500;
}

.checkbox-dropdown-list .select-all-item:hover {
    background: #f0f0f0;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

label {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.copy-button {
    width: 100%;
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.copy-button:hover {
    background: #45a049;
}

.copy-button:active {
    transform: scale(0.98);
}

.clear-button {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.clear-button:hover {
    background: #f5f5f5;
    color: #666;
    border-color: #ccc;
}

.clear-button:active {
    transform: scale(0.98);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
}

.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}