/* Forms - формы, inputs, кнопки */

.form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.form-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form-info {
    flex-shrink: 1;
    max-width: 500px;
}

/* Компактный верхний блок ввода на десктопе */
@media (min-width: 1025px) {
    .form-grid {
        flex-wrap: nowrap;
        gap: 15px;
    }
    
    .form-section {
        padding: 12px 20px;
    }
    
    .btn {
        padding: 6px 20px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .form-info {
        margin-left: auto;
    }
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

label {
    font-weight: 600;
    margin-bottom: 0;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
}

input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 160px;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
}

.btn {
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.creative-toggle-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.2s;
}

.creative-toggle-btn:hover {
    background: #f57c00;
}

.creative-toggle-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.creative-restore-btn {
    background: white;
    color: black;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.2s;
}

.creative-restore-btn:hover {
    background: #f5f5f5;
}

.creative-restore-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

/* Форма добавления публикации */
.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #1976d2;
}

.form-field small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 11px;
}

.alert-success {
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
}
