* {
    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.6;
    color: #2d5016;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    color: white;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bin-icon {
    font-size: 2.5rem;
}

header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
}

/* Card */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    border: 2px solid rgba(34, 197, 94, 0.2);
}

/* Calendar Preview */
.calendar-preview {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px dashed #86efac;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.preview-icon-wrapper {
    margin-bottom: 1rem;
}

.animated-icon {
    font-size: 5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.calendar-preview h2 {
    font-size: 1.8rem;
    color: #166534;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.preview-description {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.bin-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bin-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.bin-tag:hover {
    transform: translateY(-2px) scale(1.05);
}

.bin-tag.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bin-tag.yellow {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.bin-tag.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bin-tag.purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.bin-tag.black {
    background: linear-gradient(135deg, #000000, #333333);
}   

.bin-tag.brown {
    background: linear-gradient(135deg, #854d3d, #583429);
}

/* Next Pickup Section */
.next-pickup-section {
    background: linear-gradient(135deg, #fff9e6, #fff7d6);
    border: 3px solid #fbbf24;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.next-pickup-section.next-pickup-blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.next-pickup-section.next-pickup-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.next-pickup-section.next-pickup-brown {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    border: 3px solid #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.next-pickup-section.next-pickup-black {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border: 3px solid #111827;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
    color: #111827;
}

/* Calendar preview inside next-pickup-section */
.next-pickup-section .calendar-preview {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.next-pickup-section .calendar-preview h2 {
    color: #166534;
}

.next-pickup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.next-pickup-icon {
    font-size: 1.5rem;
}

.next-pickup-header h3 {
    font-size: 1.5rem;
    color: #166534;
    margin: 0;
    font-weight: 700;
}

.next-pickup-content {
    min-height: 60px;
}

.loading-spinner {
    text-align: center;
    color: #4b5563;
    font-size: 1rem;
    padding: 1rem;
}

.next-pickup-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.next-pickup-date {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.days-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.days-badge.today {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.days-badge.tomorrow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.days-badge:not(.today):not(.tomorrow) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.next-pickup-date-full {
    font-size: 1.3rem;
    color: #166534;
    font-weight: 700;
}

.next-pickup-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.next-pickup-type.bin-black {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.2);
    border: 1px solid rgba(17, 24, 39, 0.35);
}

.bin-type-icon {
    font-size: 2.5rem;
}

.bin-type-name {
    font-size: 1.5rem;
    color: #166534;
    font-weight: 700;
}

.next-pickup-section.next-pickup-black .next-pickup-date-full {
    color: #1f2937;
}

.next-pickup-type.bin-black .bin-type-name {
    color: #111827;
}

.no-pickup,
.error-pickup {
    text-align: center;
    color: #4b5563;
    font-size: 1rem;
    padding: 1rem;
}

.error-pickup {
    color: #ef4444;
}

/* Link Display Priority */
.link-display.priority {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Mobile Action */
.mobile-action {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #d1fae5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
}

.mobile-action .link-box {
    margin-top: 1.5rem;
}

.link-input.webcal {
    border-color: #86efac;
    background: #f0fdf4;
}

.link-type-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Large Primary Button */
.btn-primary.large {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto 0;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    display: flex;
}

/* Large Secondary Button */
.btn-secondary.large {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto 0;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    display: flex;
}

/* Divider Small */
.divider-small {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.divider-small::before,
.divider-small::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #86efac, transparent);
}

.divider-small::before {
    left: 0;
}

.divider-small::after {
    right: 0;
}

.divider-small span {
    background: white;
    padding: 0 0.75rem;
    color: #166534;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Divider */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #86efac, transparent);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #166534;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Download Section */
.download-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #9ca3af;
    position: relative;
    z-index: 1;
}

.download-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4b5563;
    font-size: 1rem;
}

.download-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    flex: 1;
    background: white;
    color: #16a34a;
    border: 2px solid #22c55e;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    border-color: #16a34a;
}

.btn-icon {
    font-size: 1.3rem;
}

/* Link Display */
.link-display {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 3px dashed #22c55e;
    position: relative;
    z-index: 1;
}

.link-display label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #166534;
    font-size: 1rem;
    text-align: center;
}

.link-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.link-input {
    flex: 1;
    max-width: 500px;
    padding: 0.875rem 1rem;
    border: 3px solid #86efac;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f0fdf4;
    color: #166534;
    font-family: monospace;
    transition: all 0.3s ease;
}

.link-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    background: white;
}

.btn-copy-inline {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-copy-inline:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Message */
.message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: none;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.message.success {
    display: block;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.message.error {
    display: block;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.message.info {
    display: block;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Help Section */
.help-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border: 2px solid rgba(34, 197, 94, 0.2);
}

.help-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #166534;
    text-align: center;
    font-weight: 700;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 16px;
    border-left: 5px solid #22c55e;
    transition: transform 0.3s ease;
}

.step.recommended-step {
    background: #f0fdf4;
    border-left: 5px solid #22c55e;
}

.step.recommended-step .step-content {
    flex: 1;
}

.step.recommended-step p:first-child {
    margin-bottom: 0.5rem;
}

.step.alternative-step {
    background: #f3f4f6;
    border-left: 5px solid #9ca3af;
    opacity: 0.9;
}

.step.alternative-step .step-content {
    flex: 1;
}

.step.alternative-step p:first-child {
    margin-bottom: 0.5rem;
}

.step-number.star {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    font-size: 1.2rem;
    line-height: 1;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.step-number {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
