/* Bingoportal CSS Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E30018;
    --primary-dark: #254A94;
    --secondary-color: #254A94;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --grey-bg: #f4f4f4;
    --dark-text: #2c3e50;
    --border-color: #dee2e6;
    --bingo-red: #E30018;
    --bingo-blue: #254A94;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: #9bcb3d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar .logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.25);
}

.owner-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.owner-filter label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.owner-filter select {
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.owner-filter select:hover {
    background: rgba(255,255,255,0.25);
}

.owner-filter select:focus {
    outline: none;
    background: rgba(255,255,255,0.3);
}

.owner-filter select option {
    background: var(--primary-color);
    color: white;
}

.admin-dropdown {
    position: relative;
}

.admin-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.25);
}

.admin-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.admin-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-text);
    text-decoration: none;
    margin: 0;
    border-radius: 0;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.admin-menu a:last-child {
    border-bottom: none;
}

.admin-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h1 {
    font-size: 2rem;
    color: var(--dark-text);
}

.calendar {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: all 0.2s;
    background: white;
}

.calendar-day.empty {
    border: none;
    background: transparent;
}

.calendar-day.has-scheine {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(227, 0, 24, 0.1) 0%, rgba(37, 74, 148, 0.1) 100%);
    border-color: var(--primary-color);
}

.calendar-day.has-scheine:hover {
    background: linear-gradient(135deg, rgba(227, 0, 24, 0.2) 0%, rgba(37, 74, 148, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.day-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-text);
}

.scheine-count {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

/* Stats Summary */
.stats-summary {
    margin-top: 2rem;
}

.stats-summary h2 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-text);
}

.stat-label {
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Table */
.table-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0

 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.scheine-table {
    width: 100%;
    border-collapse: collapse;
}

.scheine-table thead {
    background: var(--bingo-blue);
    color: white;
}

.scheine-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.scheine-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.scheine-row {
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.scheine-row:hover {
    background: rgba(227, 0, 24, 0.05);
}

.centered {
    text-align: center !important;
}

.gewinn {
    font-weight: bold;
    color: var(--success-color);
}

.verified {
    color: var(--success-color);
}

.unverified {
    color: var(--error-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    color: white;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #c00015;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #229954;
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    font-weight: bold;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--error-color);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #7f8c8d;
    margin-top: 4rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Day View */
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.day-summary {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.day-summary p {
    margin: 0.5rem 0;
}

/* Empty State */
.empty-state {
    background: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Detail View */
.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.detail-header h1 {
    display: flex;
    align-items: center;
}

.no-image {
    background: #ecf0f1;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #bdc3c7;
}

.no-image p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.no-image small {
    color: #95a5a6;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar .logo-img {
        height: 44px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding-top: 0.25rem;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a,
    .admin-btn,
    .owner-filter select {
        width: 100%;
        text-align: left;
    }

    .admin-dropdown,
    .owner-filter {
        width: 100%;
        margin-left: 0;
    }

    .admin-menu {
        position: static;
        margin-top: 0.35rem;
        width: 100%;
        border-radius: 6px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-container {
        grid-template-columns: 1fr;
    }
    
    .image-section {
        position: relative;
        top: 0;
    }
    
    .metadata-fields {
        grid-template-columns: 1fr;
    }
    
    .scheine-table {
        font-size: 0.875rem;
    }
    
    .scheine-table th,
    .scheine-table td {
        padding: 0.5rem;
    }
}
