/**
 * Űrlapok - Sötét Téma
 * Form elemek és szűrők stílusai
 */

/* === FORM CONTAINER === */
.form-container,
.modern-filters {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-container::before,
.modern-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.form-container h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.form-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* === FORM GROUP === */
.form-group,
.modern-filter-group {
    margin-bottom: 20px;
}

.form-group label,
.modern-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

/* === INPUT & SELECT === */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(108, 92, 231, 0.4);
    background: rgba(26, 26, 46, 0.95);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2), 0 4px 12px rgba(108, 92, 231, 0.15);
    background: rgba(22, 33, 62, 0.9);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c5ce7'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    padding-right: 44px;
}

select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 12px;
}

small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

/* === FILTER GRID === */
.modern-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* === FILTER HEADING === */
.filter-heading,
.data-loader-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-heading::before {
    content: '🔍';
    font-size: 20px;
}

.data-loader-heading::before {
    content: '📥';
    font-size: 20px;
}

/* === FILTER BUTTONS === */
.modern-filter-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* === SZŰRŐK PANEL === */
.filters {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

/* === RESZPONZÍV === */
@media (max-width: 768px) {
    .modern-filter-grid {
        grid-template-columns: 1fr;
    }

    .modern-filter-buttons {
        flex-direction: column;
    }

    .modern-filter-buttons button {
        width: 100%;
    }
}