* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #1e1e1e; color: #e0e0e0; font-size: 12px; margin-left: 50px; }
.main-container { max-width: 800px; margin: 20px auto; padding: 0 20px; }
.container { background: #2a2a2a; border-radius: 6px; padding: 20px; border: 1px solid #3a3a3a; }
.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: #fff; margin-bottom: 10px; }
.header p { color: #aaa; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #555;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.file-input {
    background: #333;
    border: 1px dashed #444;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.file-input:hover {
    border-color: #555;
}
.file-input input {
    display: none;
}
.file-label {
    color: #aaa;
    font-size: 11px;
}
.file-name {
    color: #4a76a8;
    font-size: 11px;
    margin-top: 5px;
}
.file-info {
    color: #777;
    font-size: 10px;
    margin-top: 5px;
}
.btn {
    background: #4a76a8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
}
.btn:hover {
    background: #5a86b8;
}
.btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}
.btn-block {
    width: 100%;
}
.message { 
    padding: 12px; 
    border-radius: 4px; 
    margin-bottom: 20px; 
    text-align: center;
}
.success { background: #2a593c; color: #a3d9b1; }
.error { background: #5a2a2a; color: #ff9999; }
.info { background: #2a4a5a; color: #a3c9d9; }
.priority-high { color: #d96262; }
.priority-medium { color: #d9b162; }
.priority-low { color: #62d962; }
.cooldown-info {
    background: #5a4a2a;
    color: #d9b162;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 11px;
}
.cooldown-timer {
    font-weight: bold;
    font-size: 14px;
}

/* Стили для бокового меню */
.sidebar-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 100vh;
    background: #2a2a2a;
    border-right: 1px solid #3a3a3a;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}
.sidebar-menu:hover {
    width: 180px;
}
.menu-toggle {
    width: 100%;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a3a3a;
    border: none;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 16px;
}
.menu-items {
    padding: 10px 0;
    height: calc(100vh - 50px);
    overflow-y: auto;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
}
.menu-item:hover {
    background: #3a3a3a;
    color: #fff;
    text-decoration: none;
}
.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.menu-text {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
}
.sidebar-menu:hover .menu-text {
    opacity: 1;
}

/* Скрытие на мобильных устройствах */
@media (max-width: 1024px) {
    body {
        margin-left: 0;
    }
    .sidebar-menu {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar-menu:hover {
        width: 100%;
    }
    .menu-items {
        height: auto;
    }
    .menu-text {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    .container {
        padding: 15px;
    }
}