/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    flex-shrink: 0;
}

.logo i {
    font-size: 2rem;
}

@media (max-width: 1200px) {
    .progress-step {
        max-width: 100px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 1024px) {
    .progress-bar {
        gap: 0.6rem;
    }
    
    .progress-step {
        max-width: 90px;
    }
}

/* Progress Bar */
.progress-bar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 120px;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.active .step-number {
    background: #4f46e5;
    color: white;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.progress-step.active .step-label {
    color: #4f46e5;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #10b981;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.step-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Age Selection */
.age-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.age-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.age-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4f46e5;
}

.age-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.age-card-header i {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.age-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.age-card-content {
    margin-bottom: 2rem;
}

.age-card-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.age-card-content ul {
    list-style: none;
    padding: 0;
}

.age-card-content li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.age-card-content li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.age-card-action {
    text-align: center;
}

/* Consent Section */
.consent-section {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.consent-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.consent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.consent-header i {
    font-size: 2rem;
    color: #4f46e5;
}

.consent-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.consent-content {
    margin-bottom: 2rem;
}

.consent-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.consent-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

.consent-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.consent-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.consent-details li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.consent-details li::before {
    content: '•';
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-container:hover .checkmark {
    border-color: #4f46e5;
}

/* Survey Form */
.survey-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.survey-section {
    margin-bottom: 3rem;
}

.survey-section:last-child {
    margin-bottom: 0;
}

.survey-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Groups */
.radio-group {
    display: grid;
    gap: 0.75rem;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-container:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-container input[type="radio"]:checked + .radio-mark {
    border-color: #4f46e5;
}

.radio-container input[type="radio"]:checked + .radio-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #4f46e5;
    border-radius: 50%;
}

.radio-container input[type="radio"]:checked ~ * {
    color: #4f46e5;
    font-weight: 500;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

/* Nutrition Symptoms */
.nutrition-symptoms {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.symptom-item {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.symptom-item:hover {
    background: #f1f5f9;
    border-color: #4f46e5;
}

.symptom-item .checkbox-container {
    margin: 0;
}

/* Rating Group */
.rating-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.rating-item:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.rating-item input[type="radio"] {
    display: none;
}

.rating-star {
    font-size: 2rem;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.rating-item input[type="radio"]:checked + .rating-star {
    color: #fbbf24;
}

.rating-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.rating-item input[type="radio"]:checked ~ .rating-label {
    color: #4f46e5;
    font-weight: 500;
}

/* PediEAT Specific Styles */
.pedi-eat-question {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.pedi-eat-question:last-of-type {
    margin-bottom: 1.5rem;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.pedi-eat-rating {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.pedi-eat-rating .rating-item {
    min-width: 90px;
    padding: 0.75rem 0.5rem;
    flex: 0 1 auto;
}

.pedi-eat-rating .rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.25rem;
}

.pedi-eat-rating .rating-item input[type="radio"]:checked ~ .rating-number {
    color: #4f46e5;
    transform: scale(1.1);
}

.pedi-eat-rating .rating-item:hover .rating-number {
    color: #4f46e5;
}

.pedi-eat-rating .rating-item input[type="radio"]:checked + .rating-number {
    color: #4f46e5;
}

.pedi-eat-rating .rating-label {
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
}

.pedi-eat-rating .rating-item input[type="radio"]:checked ~ .rating-label {
    color: #4f46e5;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-outline:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Interview Preparation */
.interview-preparation {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.preparation-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.preparation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preparation-header i {
    font-size: 2rem;
    color: #4f46e5;
}

.preparation-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

/* Camera Preview */
.camera-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.camera-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.camera-status i {
    font-size: 2rem;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.info-item i {
    font-size: 1.5rem;
    color: #4f46e5;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #1f2937;
    font-weight: 600;
}

.info-item span {
    color: #6b7280;
}

/* Tips List */
.tips-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.tips-list i {
    color: #10b981;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.footer-section a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #93c5fd;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 1rem;
}

.modal-header i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    color: #6b7280;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .progress-bar {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .progress-step {
        max-width: 90px;
        min-width: 70px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .step-header h1 {
        font-size: 2rem;
    }
    
    .step-header p {
        font-size: 1rem;
    }
    
    .consent-card,
    .survey-form,
    .preparation-card {
        padding: 1.5rem;
    }
    
    .consent-header,
    .preparation-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .rating-group {
        gap: 0.5rem;
    }
    
    .rating-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .rating-star {
        font-size: 1.5rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .camera-controls {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .step-header h1 {
        font-size: 1.75rem;
    }
    
    .consent-card,
    .survey-form,
    .preparation-card {
        padding: 1rem;
    }
    
    .consent-details {
        padding: 1rem;
    }
    
    .camera-preview {
        height: 200px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .progress-bar {
        gap: 0.4rem;
    }
    
    .progress-step {
        max-width: 75px;
        min-width: 60px;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .consent-card,
    .survey-form,
    .preparation-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #333;
        border: 2px solid #333;
    }
}

/* 24 Saatlik Besin Tüketim Tablosu */
.food-intake-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.food-intake-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

.food-intake-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.food-intake-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.food-intake-table th:first-child {
    border-top-left-radius: 12px;
}

.food-intake-table th:last-child {
    border-top-right-radius: 12px;
}

.food-intake-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.food-intake-table tbody tr:hover {
    background-color: #f9fafb;
}

.food-intake-table tbody tr:last-child {
    border-bottom: none;
}

.food-intake-table td {
    padding: 1rem;
    vertical-align: middle;
}

.food-intake-table .time-cell {
    font-weight: 600;
    color: #4b5563;
    min-width: 120px;
    white-space: nowrap;
    background-color: #f9fafb;
}

.food-name-input,
.food-amount-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.food-name-input:focus,
.food-amount-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.food-name-input::placeholder,
.food-amount-input::placeholder {
    color: #9ca3af;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .food-intake-table {
        font-size: 0.85rem;
    }
    
    .food-intake-table th,
    .food-intake-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .food-intake-table .time-cell {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .food-name-input,
    .food-amount-input {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .food-intake-table-container {
        margin: 1rem 0;
    }

    .food-intake-table {
        font-size: 0.8rem;
    }

    .food-intake-table th,
    .food-intake-table td {
        padding: 0.5rem 0.25rem;
    }

    .food-intake-table .time-cell {
        min-width: 80px;
        font-size: 0.75rem;
    }

    .food-name-input,
    .food-amount-input {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   Google Meet Scheduling Styles
   ============================================ */

/* Scheduling Container */
.scheduling-container {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.scheduling-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.scheduling-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scheduling-header i {
    font-size: 1.5rem;
}

.scheduling-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.scheduling-content {
    padding: 1.5rem;
}

/* Info Box */
.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.info-box > i {
    color: #0284c7;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text p {
    margin: 0 0 0.5rem 0;
    color: #0369a1;
}

.info-text ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #0369a1;
}

.info-text li {
    margin-bottom: 0.25rem;
}

/* Form Instruction */
.form-instruction {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Date Inputs */
.date-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-input-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.date-input-group input[type="date"] {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.date-input-group input[type="date"]:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.time-slot-option {
    cursor: pointer;
}

.time-slot-option input {
    display: none;
}

.time-slot-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}

.time-slot-label i {
    color: #9ca3af;
}

.time-slot-option:hover .time-slot-label {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.time-slot-option input:checked + .time-slot-label {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
}

.time-slot-option input:checked + .time-slot-label i {
    color: white;
}

/* Notes Textarea */
#scheduling_notes {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#scheduling_notes:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#scheduling_notes::placeholder {
    color: #9ca3af;
}

/* Responsive for scheduling */
@media (max-width: 640px) {
    .scheduling-content {
        padding: 1rem;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .time-slots-grid {
        grid-template-columns: 1fr;
    }

    .info-box {
        flex-direction: column;
    }
}
