:root {
    --primary-color: #4a6fa5;
    --secondary-color: #f8f9fa;
    --hover-color: #e9ecef;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fb;
}

/* Стили бокового меню */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    color: #ecf0f1;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover {
    background: #34495e;
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu .active {
    background: #34495e;
    border-left: 4px solid var(--primary-color);
    pointer-events: none;
    cursor: default;
}

/* Основное содержимое */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: var(--hover-color);
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-form .form-group {
    margin-bottom: 0;
}

.filter-form {
     margin-bottom: 20px; 
     background: #f9f9f9; 
     padding: 15px; 
}

.filter-form-button{
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;  
    background-color: #74a5ef;
    color: #fff;
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
}

.filter-form-button:hover{
    background-color: #3c80e5;
}

.filter-form-button.export {
    background-color: #4CAF50;
    width: fit-content;
}

.filter-form-button.export:hover {
    background-color: #208124;
}

.processor-filter-block {
    margin-bottom: 10px;
}

.processor-filter-title {
    width: 100%;
    display: flex;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.status-pending { color: #f39c12; }
.status-processing { color: #3498db; }
.status-success { color: #2ecc71; }
.status-error { color: #e74c3c; }

.processor-upload-button-js {
    position: relative;
    display: flex;
}

.processor-upload-button-js.loading {
    opacity: 0.7;
    pointer-events: none;
}

.processor-upload-button-js .spinner {
    display: none;
    position: relative;
    left: -7px;
    top: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.processor-upload-button-js.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}


.processor-download-button-js {
    position: relative;
    transition: all 0.3s;
    display: flex;
}

.processor-download-button-js.loading {
    opacity: 0.7;
    pointer-events: none;
}

.processor-download-button-js .spinner {
    display: none;
    position: relative;
    left: -7px;
    top: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.processor-download-button-js.loading .spinner {
    display: block;
}
