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

/* Status messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.collection-types {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.collection-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.collection-type .icon {
    font-size: 1.5rem;
}

.schedule-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 100%);
    min-height: 100vh;
    color: #2c3e50;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e3f2fd;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    text-align: center;
    flex: 1;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

header h1 i {
    color: #007bff;
}

header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.input-group input {
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
}

.input-group button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.search-hint {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.results-section {
    margin-bottom: 2rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    border-left: 4px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.water-card {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.trash-card {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.water-card h2 i {
    color: #007bff;
}

.trash-card h2 i {
    color: #dc3545;
}

.schedule-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 3px solid;
}

.schedule-item.water {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f8ff 100%);
}

.schedule-item.trash {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5f5 100%);
}

.schedule-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.schedule-item p {
    color: #7f8c8d;
    margin: 0.25rem 0;
}

.schedule-item .day {
    font-weight: 600;
    color: #007bff;
    font-size: 1.2rem;
}

.schedule-item.trash .day {
    color: #dc3545;
}

.info-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.restriction-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #dc3545;
}

.restriction-info ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.restriction-info li {
    margin: 0.25rem 0;
}

footer {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 12px;
    padding: 1rem;
    color: #721c24;
    margin: 1rem 0;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.auth-hint {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.sign-out-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.sign-out-btn:hover {
    background: #c82333;
}

.reminders-card {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.reminders-card h2 i {
    color: #28a745;
}

.reminder-settings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-group h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
}

.setting-group label {
    font-weight: 500;
    color: #2c3e50;
}

.setting-group select {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #2c3e50;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.save-btn, .test-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.save-btn {
    background: linear-gradient(135deg, #28a745 0%, #20914a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.test-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.reminder-status {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.reminder-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.reminder-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
    display: block;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
}