/*
 Theme Name: Astra Child
 Template: astra
 */

/*
 Theme Name: Astra Child
 Template: astra
 */

:root {
    --m3-primary: #6EC1E4;
    --m3-primary-hover: #5baed1;
    --m3-surface: #FFFFFF;
    --m3-surface-variant: #F3F3F9;
    --m3-on-surface: #1C1B1F;
    --m3-outline: #79747E;
    --m3-border: #E0E0E0;
    --m3-bg-input: #F9F9F9;
    --m3-shadow: rgba(0, 0, 0, 0.12);
}

.m3-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--m3-surface);
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 0 10px 30px var(--m3-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.m3-title { text-align: center; margin-bottom: 2rem; font-weight: 400; color: var(--m3-on-surface); }

/* --- CHECKBOX FIX --- */
.m3-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--m3-surface-variant);
    border-radius: 16px;
    cursor: pointer;
}

.m3-big-checkbox {
    width: 24px !important;
    height: 24px !important;
    margin-top: 2px !important;
    cursor: pointer;
    flex-shrink: 0;
}

.m3-checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--m3-on-surface);
    cursor: pointer;
    user-select: none;
}

/* --- FILTER BAR FIX --- */
.m3-filter-bar {
    background: var(--m3-surface-variant);
    padding: 15px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.m3-filter-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.m3-filter-search { flex: 2; min-width: 150px; }
.m3-filter-select { flex: 1; min-width: 90px; }

.m3-filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.m3-btn-small {
    background: var(--m3-primary) !important;
    color: white !important;
    border: none !important;
    padding: 6px 15px !important;
    border-radius: 100px !important;
    font-size: 0.8rem !important;
    cursor: pointer;
}

.m3-reset-link { font-size: 0.8rem; color: var(--m3-outline); text-decoration: none; }

/* --- ALLGEMEINE INPUTS (Astra Overwrite) --- */
.m3-wrapper .m3-input, 
.m3-wrapper .m3-select-custom {
    width: 100% !important;
    padding: 0.8rem 1rem !important;
    border-radius: 14px !important;
    border: 1px solid var(--m3-border) !important;
    background-color: var(--m3-bg-input) !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    appearance: none !important;
}

/* Custom Select Arrow */
.m3-wrapper .m3-select-custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2379747E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 35px !important;
}

.m3-btn-filled {
    width: 100% !important;
    background: var(--m3-primary) !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 100px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.m3-archive-item {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m3-archive-item-info strong { display: block; font-size: 0.95rem; }
.m3-archive-item-info span { font-size: 0.8rem; color: var(--m3-outline); }

.m3-archive-toggle {
    width: 100%;
    background: transparent !important;
    color: var(--m3-primary) !important;
    border: none !important;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
}