/**
 * Lions Sammelboxen - Elegantes Design passend zur Homepage
 * Version 1.1.1 - Minimalistischer Header
 */

/* ===== Container ===== */
.lions-sb-widget {
    font-family: Heebo, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1290px;
    margin: 40px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f3f4f7;
}

/* ===== Header - Elegant & Minimal ===== */
.lions-sb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    color: #1f2933;
    border-bottom: 2px solid #f7b500;
}

.lions-sb-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1f2933;
}

.lions-sb-actions {
    display: flex;
    gap: 12px;
}

/* ===== Buttons - Subtle & Clean ===== */
.lions-sb-btn {
    padding: 10px 20px;
    border: 2px solid #f3f4f7;
    border-radius: 8px;
    background: #fff;
    color: #3e4c59;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.lions-sb-btn:hover {
    border-color: #f7b500;
    color: #f7b500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 181, 0, 0.15);
}

.lions-sb-btn:active {
    transform: translateY(0);
}

.lions-sb-btn-primary {
    background: #f7b500;
    color: #fff;
    border-color: #f7b500;
    font-weight: 700;
}

.lions-sb-btn-primary:hover {
    background: #ed8f0c;
    border-color: #ed8f0c;
    box-shadow: 0 4px 16px rgba(247, 181, 0, 0.25);
}

/* ===== Table - Clean & Modern ===== */
.lions-sb-table-container {
    overflow-x: auto;
    padding: 0 40px 40px 40px;
}

.lions-sb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.lions-sb-table thead {
    background: #f9f9fb;
}

.lions-sb-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #1f2933;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f7b500;
}

.lions-sb-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f7;
    color: #3e4c59;
    font-size: 15px;
}

.lions-sb-table tbody tr {
    transition: all 0.2s;
    background: #fff;
}

.lions-sb-table tbody tr:hover {
    background: #f9f9fb;
    transform: translateX(2px);
}

.lions-sb-table tbody tr:last-child td {
    border-bottom: none;
}

.lions-sb-actions-col {
    width: 100px;
    text-align: center;
}

.lions-sb-actions-cell {
    text-align: center;
}

/* ===== Status Badges - Modern ===== */
.lions-sb-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lions-sb-status-aktiv {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lions-sb-status-absage {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lions-sb-status-offen {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    border: 1px solid #ffeeba;
}

.lions-sb-status-abgeschlossen {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== Icon Buttons - Subtle ===== */
.lions-sb-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 10px;
    transition: all 0.2s;
    border-radius: 6px;
    color: #52606d;
}

.lions-sb-icon-btn:hover {
    background: #f9f9fb;
    color: #f7b500;
    transform: scale(1.1);
}

.lions-sb-icon-btn:active {
    transform: scale(0.95);
}

/* ===== Loading ===== */
.lions-sb-loading {
    text-align: center;
    padding: 80px 20px !important;
    color: #7b8794;
}

.lions-sb-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f9f9fb;
    border-top: 4px solid #f7b500;
    border-radius: 50%;
    animation: lions-sb-spin 0.8s linear infinite;
}

@keyframes lions-sb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.lions-sb-empty {
    text-align: center;
    padding: 100px 20px;
    color: #7b8794;
}

.lions-sb-empty p {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Modal - Modern Overlay ===== */
.lions-sb-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 51, 0.6);
    backdrop-filter: blur(4px);
    animation: lions-sb-fade-in 0.2s;
}

@keyframes lions-sb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lions-sb-modal-content {
    background: #fff;
    margin: 5% auto;
    max-width: 650px;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    animation: lions-sb-slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

@keyframes lions-sb-slide-down {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lions-sb-modal-header {
    padding: 28px 40px;
    border-bottom: 1px solid #f3f4f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9f9fb 0%, #fff 100%);
    border-radius: 15px 15px 0 0;
}

.lions-sb-modal-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2933;
}

.lions-sb-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7b8794;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lions-sb-modal-close:hover {
    color: #f7b500;
    background: #f9f9fb;
    transform: scale(1.1);
}

.lions-sb-modal-body {
    padding: 40px;
}

.lions-sb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

/* ===== Form - Clean & Modern ===== */
.lions-sb-form-group {
    margin-bottom: 24px;
}

.lions-sb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lions-sb-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f2933;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lions-sb-form-group input,
.lions-sb-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f3f4f7;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2933;
    background: #fff;
    transition: all 0.2s;
}

.lions-sb-form-group input:hover,
.lions-sb-form-group select:hover {
    border-color: #e5e7eb;
}

.lions-sb-form-group input:focus,
.lions-sb-form-group select:focus {
    outline: none;
    border-color: #f7b500;
    box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.1);
    background: #fff;
}

/* ===== Notice - Modern Alerts ===== */
.lions-sb-notice {
    padding: 16px 24px;
    margin: 20px 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid;
}

.lions-sb-notice-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.lions-sb-notice-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .lions-sb-header {
        padding: 18px 30px;
    }
    
    .lions-sb-table-container {
        padding: 0 30px 30px 30px;
    }
}

@media (max-width: 768px) {
    .lions-sb-widget {
        margin: 20px;
        border-radius: 12px;
    }
    
    .lions-sb-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .lions-sb-title {
        font-size: 22px;
        text-align: center;
    }
    
    .lions-sb-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lions-sb-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .lions-sb-table-container {
        padding: 0 20px 20px 20px;
    }
    
    .lions-sb-form-row {
        grid-template-columns: 1fr;
    }
    
    .lions-sb-table th,
    .lions-sb-table td {
        padding: 12px;
        font-size: 13px;
    }
    
    .lions-sb-modal-content {
        margin: 10% 15px;
        border-radius: 12px;
    }
    
    .lions-sb-modal-header {
        padding: 20px;
    }
    
    .lions-sb-modal-body {
        padding: 24px 20px;
    }
}
