* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f5f7fa;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

header {
    text-align: center;
    padding: 15px 20px;
    border-bottom: 2px solid #006fb7;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

header h1 {
    color: #006fb7;
    font-size: 1.6em;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header h1 i {
    margin-right: 10px;
    font-size: 0.9em;
}

.subtitle {
    color: #5a6c7d;
    font-size: 0.95em;
    font-weight: 500;
}

.subtitle i {
    margin-right: 6px;
}

.intro {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    line-height: 1.7;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.intro p {
    margin-bottom: 14px;
    font-size: 0.95em;
    color: #2c3e50;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro p strong {
    color: #006fb7;
    font-weight: 600;
}

.intro i {
    margin-right: 10px;
    color: #006fb7;
    width: 20px;
    font-size: 1.05em;
}

.disclaimer {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.disclaimer p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #856404;
    line-height: 1.6;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.disclaimer i {
    margin-right: 8px;
    color: #856404;
}

.disclaimer a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer a:hover {
    color: #533f03;
}

.contact-link {
    color: #006fb7;
    text-decoration: underline;
    font-weight: 600;
}

.contact-link:hover {
    color: #005a9e;
    text-decoration: none;
}

.form-container {
    background-color: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-title {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e8ed;
}

.form-title i {
    margin-right: 8px;
    color: #006fb7;
}

.required {
    color: #c33;
    font-weight: 700;
}

.optional {
    color: #7f8c8d;
    font-weight: 400;
    font-size: 0.9em;
}

.form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e1e8ed;
}

.info-box {
    background-color: #e8f4f8;
    border: 2px solid #17a2b8;
    border-radius: 6px;
    padding: 18px;
    margin-top: 20px;
}

.info-box h3 {
    color: #0c5460;
    font-size: 1.15em;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-box h3 i {
    margin-right: 8px;
    color: #17a2b8;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box ul li {
    padding: 8px 0 8px 22px;
    position: relative;
    color: #0c5460;
    font-size: 0.95em;
    line-height: 1.5;
}

.info-box ul li i {
    position: absolute;
    left: 0;
    color: #17a2b8;
    width: 18px;
}

.ics-info-box {
    background-color: #e8f4f8;
    border: 2px solid #17a2b8;
    border-radius: 6px;
    padding: 18px;
    margin-top: 20px;
}

.ics-info-box h3 {
    color: #0c5460;
    font-size: 1.15em;
    margin-bottom: 12px;
    font-weight: 700;
}

.ics-info-box h3 i {
    margin-right: 8px;
    color: #17a2b8;
}

.ics-info-box p {
    color: #0c5460;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ics-info-box p:last-child {
    margin-bottom: 0;
}

.ics-info-box strong {
    color: #0c5460;
    font-weight: 700;
}

.page-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85em;
}

.page-footer i {
    margin-right: 5px;
}

.admin-link {
    display: inline;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.75em;
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.2s;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.admin-link:hover {
    opacity: 1;
    color: #006fb7;
    text-decoration: underline;
}

.kalender-stats {
    background-color: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 0.85em;
    color: #2c3e50;
}

.kalender-stats i {
    margin-right: 5px;
    color: #006fb7;
}

.kalender-stats strong {
    color: #006fb7;
    font-size: 1em;
    font-weight: 700;
}

.ics-subscribe-box {
    background-color: #fff;
    border: 1px solid #006fb7;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.ics-subscribe-box h3 {
    color: #006fb7;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.ics-subscribe-box h3 i {
    margin-right: 6px;
}

.ics-subscribe-box > p {
    color: #2c3e50;
    font-size: 0.85em;
    margin-bottom: 8px;
    line-height: 1.5;
}

.ics-url-note {
    background-color: #e8f4f8;
    border-left: 2px solid #17a2b8;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #0c5460;
    line-height: 1.4;
}

.ics-url-note i {
    margin-right: 6px;
    color: #17a2b8;
}

.ics-url-container {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ics-url-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.ics-url-input:focus {
    outline: none;
    border-color: #006fb7;
}

.btn-copy {
    padding: 10px 18px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.btn-copy i {
    margin-right: 6px;
}

.ics-instructions {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.8em;
}

.ics-instructions p {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.ics-instructions ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ics-instructions ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #5a6c7d;
    line-height: 1.5;
}

.ics-instructions ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #006fb7;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.form-group label i {
    margin-right: 6px;
    color: #006fb7;
    width: 16px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d9e0;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #2c3e50;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #006fb7;
    box-shadow: 0 0 0 3px rgba(0, 111, 183, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.85em;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary i, .btn-secondary i {
    margin-right: 6px;
}

.btn-primary {
    background-color: #006fb7;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 111, 183, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    pointer-events: none;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #c33;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.error-message i {
    margin-right: 8px;
}

.error-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 14px;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
    margin: 20px 0;
    text-align: center;
    font-size: 0.95em;
}

.info-message i {
    margin-right: 8px;
}

.actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.actions a {
    flex: 1;
    min-width: 180px;
}

.kalender-overzicht {
    display: grid;
    gap: 15px;
}

.maand-blok {
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maand-blok:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.maand-blok h2 {
    color: #006fb7;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e8ed;
    font-size: 1.1em;
    font-weight: 700;
}

.events-lijst {
    display: grid;
    gap: 6px;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #006fb7;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.event-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background-color: #fff;
}

.event-datum {
    display: flex;
    flex-direction: column;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #e1e8ed;
    flex-shrink: 0;
}

.dag-naam {
    font-size: 0.8em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 600;
    margin-bottom: 3px;
}

.dag-nummer {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.event-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.event-icon {
    margin-right: 6px;
    color: #7f8c8d;
    font-size: 0.9em;
}

.afvalsoort {
    font-size: 0.95em;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.2px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 18px;
    }

    header h1 {
        font-size: 2.4em;
    }

    .maand-blok {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding: 10px;
        box-shadow: none;
        min-height: auto;
    }

    header {
        padding: 18px 10px;
        margin-bottom: 18px;
    }

    header h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }

    header h1 i {
        font-size: 0.85em;
        margin-right: 8px;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .intro {
        padding: 14px;
        margin-bottom: 16px;
    }

    .intro p {
        font-size: 0.88em;
        line-height: 1.6;
    }

    .intro i {
        width: 16px;
        margin-right: 6px;
    }

    .form-container {
        padding: 16px 12px;
    }

    .form-title {
        font-size: 1.2em;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }

    .form-group input[type="text"] {
        font-size: 16px; /* Voorkomt zoom op iOS */
        padding: 12px;
        -webkit-appearance: none;
        border-radius: 4px;
    }

    .form-group small {
        font-size: 0.8em;
        margin-top: 4px;
    }

    .form-actions {
        margin-top: 18px;
        padding-top: 14px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px; /* Touch target size */
    }

    .info-box {
        padding: 16px;
        margin-top: 20px;
    }

    .info-box h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .info-box ul li {
        font-size: 0.9em;
        padding: 7px 0 7px 20px;
    }

    .ics-info-box {
        padding: 16px;
        margin-top: 18px;
    }

    .ics-info-box h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .ics-info-box p {
        font-size: 0.9em;
    }

    .disclaimer {
        padding: 14px;
        margin-bottom: 18px;
    }

    .disclaimer p {
        font-size: 0.85em;
        line-height: 1.5;
    }

    .page-footer {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.85em;
    }

    .kalender-stats {
        padding: 12px;
        margin-bottom: 16px;
        font-size: 0.9em;
    }

    .kalender-stats strong {
        font-size: 1.1em;
    }

    .ics-subscribe-box {
        padding: 14px;
        margin-bottom: 16px;
    }

    .ics-subscribe-box h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .ics-subscribe-box > p {
        font-size: 0.85em;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .ics-url-note {
        padding: 8px 10px;
        font-size: 0.8em;
        margin-bottom: 12px;
    }

    .ics-url-container {
        flex-direction: column;
        gap: 10px;
    }

    .ics-url-input {
        font-size: 0.8em;
        padding: 10px;
        word-break: break-all;
        -webkit-appearance: none;
    }

    .btn-copy {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .ics-instructions {
        font-size: 0.75em;
        padding: 12px;
    }

    .ics-instructions ul li {
        padding: 6px 0 6px 18px;
        font-size: 0.85em;
        line-height: 1.4;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .actions a {
        width: 100%;
        min-width: auto;
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }

    .kalender-overzicht {
        gap: 14px;
    }

    .maand-blok {
        padding: 14px;
    }

    .maand-blok h2 {
        font-size: 1.15em;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .events-lijst {
        gap: 8px;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .event-datum {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        margin-right: 0;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: none;
        border-bottom: 2px solid #e1e8ed;
        min-width: auto;
        width: 100%;
    }

    .dag-naam {
        font-size: 0.85em;
        margin-bottom: 0;
    }

    .dag-nummer {
        font-size: 1.6em;
    }

    .event-info {
        width: 100%;
    }

    .event-icon {
        font-size: 0.95em;
        margin-right: 6px;
    }

    .afvalsoort {
        font-size: 1.05em;
    }

    .error-message, .info-message {
        padding: 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding: 8px;
    }

    header {
        padding: 16px 8px;
        margin-bottom: 16px;
    }

    header h1 {
        font-size: 1.4em;
        line-height: 1.2;
    }

    header h1 i {
        font-size: 0.8em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .intro {
        padding: 12px;
        margin-bottom: 14px;
    }

    .intro p {
        font-size: 0.85em;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .intro i {
        width: 14px;
        margin-right: 5px;
    }

    .form-container {
        padding: 14px 10px;
    }

    .form-title {
        font-size: 1.1em;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 0.88em;
        margin-bottom: 6px;
    }

    .form-group input[type="text"] {
        font-size: 16px; /* Voorkomt zoom op iOS */
        padding: 11px;
    }

    .form-group small {
        font-size: 0.75em;
    }

    .form-actions {
        margin-top: 16px;
        padding-top: 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 11px 18px;
        font-size: 14px;
        min-height: 44px;
    }

    .info-box {
        padding: 14px;
        margin-top: 16px;
    }

    .info-box h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .info-box ul li {
        font-size: 0.85em;
        padding: 6px 0 6px 18px;
    }

    .ics-info-box {
        padding: 14px;
        margin-top: 16px;
    }

    .ics-info-box h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .ics-info-box p {
        font-size: 0.85em;
    }

    .disclaimer {
        padding: 12px;
        margin-bottom: 16px;
    }

    .disclaimer p {
        font-size: 0.8em;
        line-height: 1.5;
    }

    .page-footer {
        margin-top: 24px;
        padding-top: 16px;
        font-size: 0.8em;
    }

    .kalender-stats {
        padding: 10px;
        margin-bottom: 14px;
        font-size: 0.85em;
    }

    .kalender-stats strong {
        font-size: 1em;
    }

    .ics-subscribe-box {
        padding: 12px;
        margin-bottom: 14px;
    }

    .ics-subscribe-box h3 {
        font-size: 0.95em;
        margin-bottom: 8px;
    }

    .ics-subscribe-box > p {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .ics-url-note {
        padding: 8px;
        font-size: 0.75em;
        margin-bottom: 10px;
    }

    .ics-url-input {
        font-size: 0.75em;
        padding: 9px;
    }

    .btn-copy {
        padding: 11px;
        font-size: 13px;
    }

    .ics-instructions {
        font-size: 0.7em;
        padding: 10px;
    }

    .ics-instructions ul li {
        padding: 5px 0 5px 16px;
        font-size: 0.8em;
    }

    .actions {
        margin-bottom: 16px;
    }

    .actions a {
        padding: 11px 16px;
        font-size: 13px;
    }

    .kalender-overzicht {
        gap: 12px;
    }

    .maand-blok {
        padding: 12px;
    }

    .maand-blok h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .events-lijst {
        gap: 7px;
    }

    .event-item {
        padding: 10px;
    }

    .event-datum {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .dag-naam {
        font-size: 0.8em;
    }

    .dag-nummer {
        font-size: 1.4em;
    }

    .event-icon {
        font-size: 0.9em;
    }

    .afvalsoort {
        font-size: 1em;
    }

    .error-message, .info-message {
        padding: 11px;
        font-size: 0.85em;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.5em;
    }

    .form-container {
        padding: 15px 12px;
    }

    .maand-blok {
        padding: 15px;
    }

    .event-item {
        padding: 12px;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #fff;
    }

    .container {
        box-shadow: none;
        padding: 0;
    }

    .actions {
        display: none;
    }

    .maand-blok {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }

    .event-item {
        border-left-width: 3px;
    }
}
