/* ===========================
   تنسيق صفحة تحويل التاريخ
   =========================== */

body {
    background-color: #eee;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .50) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .50) 50%, rgba(255, 255, 255, .50) 75%, transparent 75%, transparent);
    background-size: 200px 200px;
    margin: 0;
    padding: 0;
}

/* الحاوية الأساسية للصفحة */
.dc-page {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px 10px 40px;
    font-family: 'El Messiri';
}

/* شريط المشاركة */
.dc-share-bar {
    margin-bottom: 15px;
}

.dc-share-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #0c3465;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dc-share-btn:hover {
    background: #102f55;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* العنوان الرئيسي */
.dc-hero {
    text-align: center;
    margin-bottom: 20px;
}

.dc-title {
    font-size: 26px;
    margin: 5px 0 10px;
    color: #0c3465;
}

.dc-subtitle {
    font-size: 16px;
    color: #444;
    margin: 0;
}

/* تخطيط عام: المحوّل + الجانبي */
.dc-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

/* كروت عامة */
.dc-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #ececf3;
}

.dc-card-title {
    font-size: 18px;
    margin: 0 0 12px;
    color: #0c3465;
}

/* نموذج المحوّل */
.dc-converter {
    position: relative;
}

.dc-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 16px;
}

.dc-form-section {
    background: #f9fafc;
    border-radius: 10px;
    padding: 12px 14px 14px;
    border: 1px solid #e5e7f0;
}

.dc-section-title {
    font-size: 16px;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.dc-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #444;
}

/* مجموعة الحقول (اليوم / الشهر / السنة) */
.dc-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px; /* المسافة بين الحقول */
    margin-bottom: 12px;
}

.dc-input {
    font-family: 'El Messiri';
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 2px solid #444 !important;
    font-size: 14px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    color: red;
    font-size: 18px;
    font-weight: 700;
}

.dc-input:focus {
    border-color: #0c3465;
    box-shadow: 0 0 0 2px rgba(12, 52, 101, 0.1);
}

.dc-input-readonly {
    background: #f3f4f9;
}

/* أزرار */
.dc-btn {
    font-family: 'El Messiri';
    display: inline-block;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    white-space: nowrap;
}

.dc-btn-green {
    background: #085c35;
    color: #fff;
    width: 100%;
    margin-top: 2px;
}

.dc-btn-green:hover {
    background: #189458;
    box-shadow: 0 2px 8px rgba(31, 179, 107, 0.35);
    transform: translateY(-1px);
}

.dc-btn-blue {
    background: #064488;
    color: #fff;
    width: 100%;
    margin-top: 2px;
}

.dc-btn-blue:hover {
    background: #0755a7;
    box-shadow: 0 2px 8px rgba(12, 111, 216, 0.35);
    transform: translateY(-1px);
}

.dc-btn-ghost {
    font-family: 'El Messiri';
    background: transparent;
    color: #3f3f3f;
    border: 1px solid #ccc;
    padding-inline: 18px;
}

.dc-btn-ghost:hover {
    background: #f3f3f7;
}

/* نتائج يوم الأسبوع / يوليان */
.dc-results-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.dc-result-box {
    flex: 1 1 220px;
}

/* منطقة الأزرار الإضافية */
.dc-actions {
    text-align: left;
}

/* الجدول الجانبي للأشهر */
.dc-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dc-table td {
    padding: 6px 8px;
    border: 1px solid #e1e3ee;
    width: 50%;
}

.dc-table .num {
    width: 40px;
    text-align: center;
    font-weight: 600;
    background: #f5f7ff;
    color: #0c3465;
}

/* النص السفلي (سيو) */
.dc-text-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ececf3;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.dc-text-block h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #0c3465;
}

/* روابط الأدوات ذات الصلة */
.dc-related {
    text-align: center;
    margin-bottom: 20px;
    font-size: 15px;
}

.dc-related p {
    margin-bottom: 8px;
    color: #3f3f3f;
}

.dc-related-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dc-btn-outline {
    border-radius: 999px;
    border: 1px solid #0c3465;
    color: #0c3465;
    background: #fff;
    padding: 7px 16px;
    font-size: 14px;
    text-decoration: none;
}

.dc-btn-outline:hover {
    background: #0c3465;
    color: #fff;
}

/* ===========================
   تجاوب الجوال
   =========================== */

@media (max-width: 900px) {
    .dc-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dc-actions {
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .dc-page {
        padding-inline: 10px;
    }

    .dc-card,
    .dc-text-block {
        padding-inline: 14px;
    }

    .dc-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dc-title {
        font-size: 22px;
    }

    .dc-subtitle {
        font-size: 16px;
    }
}