/* tools.css - تحسينات تخص صفحة الأدوات التفاعلية */

/* ======= تحسينات عامة ======= */
.tools-page {
    background-color: #f8f9fa;
    padding: 30px 0 60px;
    min-height: calc(100vh - 400px);
}

.section-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to left, #3498db, #2ecc71);
    border-radius: 3px;
}

.section-title i {
    margin-left: 10px;
    color: #3498db;
}

/* ======= رأس الصفحة ======= */
.tools-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 60px 0 40px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.tools-header .header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.tools-header .header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.tools-header .page-header-image img {
    max-height: 250px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2ecc71;
}

.breadcrumb i {
    font-size: 0.9rem;
}

/* ======= الأدوات السريعة ======= */
.quick-tools-section {
    margin-bottom: 60px;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.quick-tool-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, #3498db, #2ecc71);
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.quick-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.quick-tool-card:hover::before {
    transform: translateX(0);
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.quick-tool-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quick-tool-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-tool-quick {
    background: linear-gradient(to left, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-tool-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* ======= الأدوات المتقدمة ======= */
.advanced-tools {
    margin-bottom: 60px;
}

.tools-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.tool-tab {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.tool-tab:hover {
    background: #e9ecef;
    color: #3498db;
}

.tool-tab.active {
    background: linear-gradient(to left, #3498db, #2ecc71);
    color: white;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.tools-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tool-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.tool-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.tool-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.tool-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* تحسين النماذج */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group label i {
    margin-left: 8px;
    color: #3498db;
}

.form-select,
.date-input,
input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-select:focus,
.date-input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* الأزرار المحسنة */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to left, #3498db, #2ecc71);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

/* مميزات الأداة */
.tool-features {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #3498db;
}

.tool-features h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tool-features ul {
    list-style: none;
    padding: 0;
}

.tool-features li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
    color: #555;
}

.tool-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #2ecc71;
    font-weight: bold;
}

/* ======= مفسر البكاء ======= */
.decoder-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.decoder-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 3px solid white;
}

.step.active .step-number {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    transform: scale(1.1);
}

.step-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.step.active .step-title {
    color: #2c3e50;
    font-weight: 600;
}

/* خيارات مفسر البكاء */
.age-options,
.timing-options,
.cry-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.age-option,
.timing-option,
.cry-option {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.age-option:hover,
.timing-option:hover,
.cry-option:hover {
    border-color: #3498db;
    color: #3498db;
}

.age-option.active,
.timing-option.active,
.cry-option.active {
    background: linear-gradient(to left, #3498db, #2ecc71);
    color: white;
    border-color: transparent;
}

.symptoms-options,
.activity-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.symptom-option,
.activity-option {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.symptom-option:hover,
.activity-option:hover {
    background: #e9ecef;
}

.symptom-option input[type="checkbox"],
.activity-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

/* ======= أدوات أخرى ======= */
.medicine-calculator-section,
.meal-planner-section,
.quick-tips-tools {
    margin-bottom: 60px;
}

.section-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.medicine-warnings {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border-right: 4px solid #ffc107;
}

.medicine-warnings h4 {
    color: #856404;
    margin-bottom: 15px;
}

.medicine-warnings ul {
    color: #856404;
    padding-right: 20px;
}

.medicine-warnings li {
    margin-bottom: 8px;
}

/* نصائح سريعة */
.tips-grid-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-item-tool {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.tip-item-tool:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tip-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.tip-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tip-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ======= تحسينات للرسوم البيانية ======= */
.chart-wrapper {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.chart-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.chart-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.chart-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ======= تحسينات للنتائج ======= */
.calculator-results,
.medicine-results,
.routine-results,
.planner-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e9ecef;
    min-height: 100px;
}

#cry-analysis-results,
#growth-analysis {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* ======= تحسينات متفرقة ======= */
.decoder-navigation,
.form-buttons,
.decoder-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.tracker-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tracker-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tracker-tab:hover {
    background: #e9ecef;
    color: #3498db;
}

.tracker-tab.active {
    background: linear-gradient(to left, #3498db, #2ecc71);
    color: white;
}

.tracker-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tracker-pane.active {
    display: block;
}

/* ======= تحسينات للاستجابة ======= */
@media (max-width: 768px) {
    .tools-header .container {
        flex-direction: column;
    }
    
    .tools-header .header-content h1 {
        font-size: 2rem;
    }
    
    .quick-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-tabs {
        flex-direction: column;
    }
    
    .tool-tab {
        min-width: 100%;
    }
    
    .decoder-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 20px;
    }
    
    .decoder-steps::before {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .tips-grid-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .step {
        flex: 0 0 100%;
    }
    
    .age-options,
    .timing-options,
    .cry-options {
        flex-direction: column;
    }
    
    .age-option,
    .timing-option,
    .cry-option {
        width: 100%;
    }
}

/* تحسينات للوضع الداكن (إن وجد) */
@media (prefers-color-scheme: dark) {
    .tools-page {
        background-color: #1a1a1a;
    }
    
    .section-title,
    .tool-header h3,
    .tip-content h3 {
        color: #e0e0e0;
    }
    
    .quick-tool-card,
    .tools-content,
    .section-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .quick-tool-card p,
    .tool-header p {
        color: #b0b0b0;
    }
    
    .form-group label {
        color: #e0e0e0;
    }
    
    .form-select,
    .date-input,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea {
        background: #3d3d3d;
        border-color: #4d4d4d;
        color: #e0e0e0;
    }
    
    .tool-features,
    .calculator-results,
    .medicine-results,
    .routine-results,
    .planner-results,
    .chart-controls {
        background: #2d2d2d;
        border-color: #3d3d3d;
        color: #e0e0e0;
    }
    
    .tip-item-tool {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .tip-content p {
        color: #b0b0b0;
    }
    
    .tracker-tab,
    .btn-secondary {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #4d4d4d;
    }
}

/* تحسينات للطباعة */
@media print {
    .tools-tabs,
    .decoder-navigation,
    .form-buttons,
    .tracker-tabs,
    .chart-controls,
    .footer,
    .back-to-top {
        display: none !important;
    }
    
    .tool-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .quick-tool-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.tool-content { display:none; }
.tool-content.active { display:block; }


/* تنسيقات الأنشطة */
.activity-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.activity-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-option:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-option input[type="checkbox"] {
    display: none;
}

.activity-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.activity-option label i {
    font-size: 20px;
    color: #4CAF50;
    width: 30px;
    text-align: center;
}

.activity-option input[type="checkbox"]:checked + label {
    color: #2E7D32;
}

.activity-option input[type="checkbox"]:checked + label i {
    color: #2E7D32;
}

.activity-option input[type="checkbox"]:checked ~ .activity-option {
    background: #e8f5e9;
    border-color: #4CAF50;
}

/* رسالة ترحيب الأنشطة */
.welcome-tips {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-tips p {
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-tips ul {
    margin: 0;
    padding-right: 20px;
    color: #37474f;
}

.welcome-tips li {
    margin-bottom: 8px;
    padding-right: 10px;
}

/* أزرار النموذج */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.form-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.form-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* =============================
   routine.css - تنسيقات الروتين
   ============================= */

/* بطاقة الروتين */
.routine-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.routine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.routine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.routine-header h4 {
    color: #2c3e50;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.routine-header h4 i {
    color: #4CAF50;
    margin-left: 10px;
}

.routine-stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: #e8f5e9;
    padding: 8px 15px;
    border-radius: 25px;
    color: #2E7D32;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stat i {
    font-size: 16px;
}

/* الجدول الزمني */
.routine-timeline {
    position: relative;
    padding: 20px 0;
}

.routine-timeline:before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #4CAF50, #2196F3);
    border-radius: 3px;
}

.routine-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1.5fr;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeInRight 0.5s ease forwards;
    opacity: 0;
    position: relative;
}

.routine-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.routine-item:before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #4CAF50;
}

.routine-time {
    color: #2196F3;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    border-right: 4px solid #2196F3;
}

.routine-time i {
    font-size: 20px;
}

.routine-activity {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.routine-duration {
    color: #FF9800;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.routine-notes {
    color: #666;
    font-size: 14px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    border-right: 3px solid #9E9E9E;
}

/* نصائح الروتين */
.routine-tips {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border-right: 5px solid #2196F3;
}

.routine-tips h5 {
    color: #1565c0;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.routine-tips ul {
    margin: 0;
    padding-right: 20px;
    list-style-type: none;
}

.routine-tips li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #90caf9;
    position: relative;
    padding-right: 30px;
    color: #37474f;
    line-height: 1.6;
}

.routine-tips li:before {
    content: "💡";
    position: absolute;
    right: 0;
    font-size: 18px;
}

.routine-tips li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* أزرار الروتين */
.routine-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.routine-actions .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.routine-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* رسالة الترحيب */
.routine-welcome {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.routine-welcome h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.routine-welcome p {
    color: #546e7a;
    font-size: 16px;
    margin-bottom: 20px;
}

/* الأنيميشن */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .routine-timeline:before {
        right: 30px;
    }
    
    .routine-item:before {
        right: -38px;
    }
}

@media (max-width: 768px) {
    .routine-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .routine-stats {
        justify-content: center;
    }
    
    .routine-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: right;
        padding: 15px;
    }
    
    .routine-timeline:before {
        display: none;
    }
    
    .routine-item:before {
        display: none;
    }
    
    .routine-time, .routine-activity, .routine-duration, .routine-notes {
        justify-content: flex-end;
    }
    
    .routine-actions {
        flex-direction: column;
    }
    
    .routine-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .routine-card {
        padding: 15px;
    }
    
    .routine-header h4 {
        font-size: 18px;
    }
    
    .stat {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .routine-activity {
        font-size: 16px;
    }
}

/* تأثيرات خاصة بالأنشطة */
.routine-item:nth-child(odd) {
    background: linear-gradient(90deg, #ffffff, #f9f9f9);
}

.routine-item:nth-child(even) {
    background: linear-gradient(90deg, #ffffff, #f5f5f5);
}

/* ألوان حسب نوع النشاط */
.activity-feeding .routine-activity {
    color: #E91E63;
}

.activity-sleep .routine-activity {
    color: #2196F3;
}

.activity-play .routine-activity {
    color: #4CAF50;
}

.activity-learning .routine-activity {
    color: #FF9800;
}

.activity-outdoor .routine-activity {
    color: #009688;
}
/* Routine output is immediately readable, including without external icons. */
.site-shell .routine-generator input[type="time"] { width: 100%; min-height: 44px; padding: 12px 15px; border: 2px solid #e9ecef; border-radius: 10px; background: #fff; color: #173b49; }
.site-shell .routine-item { animation: none; opacity: 1; min-width: 0; }
.site-shell .routine-time bdi { display: inline-block; }
.site-shell .routine-actions .btn { flex: 0 1 auto; min-height: 44px; }
.site-shell .routine-generator fieldset label { min-height: 44px; display: flex; align-items: center; gap: 10px; }
