/* Urban Life App Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

main {
    flex: 1;
    padding: 2rem 1rem;
}

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 80px;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    min-width: 60px;
    text-align: center;
}

.btn-text h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.btn-text p {
    font-size: 0.9rem;
    color: #666;
}

.request-btn {
    border-left: 4px solid #4CAF50;
}

.vegetables-btn {
    border-left: 4px solid #FF9800;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

/* Form Styles */
.form-container {
    padding: 2rem 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #2196F3;
    text-decoration: none;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #f0f8ff;
}

.back-btn::before {
    content: '←';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

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

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-order {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-order:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design */
/* 通知設定スタイル */
.notification-settings {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.notification-settings h3 {
    margin: 0 0 15px 0;
    color: #2c5530;
    font-size: 18px;
}

.notification-status {
    margin-bottom: 15px;
    font-size: 16px;
}

.status-enabled {
    color: #28a745;
    font-weight: bold;
}

.status-disabled {
    color: #6c757d;
    font-weight: bold;
}

.notification-buttons {
    margin-bottom: 15px;
}

.notification-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 1rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .main-buttons {
        gap: 2rem;
    }
    
    .main-btn {
        padding: 2rem;
        min-height: 100px;
    }
    
    .btn-icon {
        font-size: 3rem;
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-btn {
        padding: 15px;
    }
    
    .btn-text {
        font-size: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .notification-settings {
        padding: 15px;
        margin-top: 20px;
    }
}
