@font-face {
    font-family: 'Dana';
    src: url('/static/fonts/dana/dana-fanum-regular.woff') format('woff');
    font-weight: 400; /* وزن معمولی */
    font-style: normal;
}
@font-face {
    font-family: 'Dana';
    src: url('/static/fonts/dana/dana-fanum-bold.woff') format('woff');
    font-weight: 900; /* یا bold وزن برای bold */
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Dana', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}
.station-header {
    background-color:rgb(55, 96, 206); /* رنگ اصلی جدول */
    color: white;
    padding: 0.75rem 1.5rem;
    margin-top: 2rem; /* ایجاد فاصله بین جداول ایستگاه‌ها */
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 1.4rem;
    text-align: right;
    font-weight: 800;
}

/* هدر و عنوان */
h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.date {
    text-align: center;
    color: #6c809d;
    font-weight: 600;
    margin-bottom: 2rem;
}

.date span {
    font-weight: bold;
    font-size: 1.2rem;
    color: #3c4654 ;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

header img {
    height: 90px;
    object-fit: contain;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    border: none;
    border-right: 1px solid #e2e8f0;
    padding: 1rem 0.6rem;
    vertical-align: middle;
}

td:last-child {
    border-right: none;
}

thead {
    background-color: #1e3a8a;
    color: white;
    font-weight: 700;
}

/* سلول‌های داخلی هدر (برای سطرهای زیرین) */
thead tr:nth-child(2) th,
thead tr:nth-child(3) th {
    background-color: #2563eb;
    color: #fff;
    font-weight: 500;
    border-top: 1px solid #4f7fff;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

tbody tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s;
}

.direction {
    font-size: 1.3rem;
    font-weight: 900;
    color: #059669;
}

/* ستون وضعیت دریا - توضیحات */
tbody td:nth-child(3) { 
    font-weight: 400;
    color: #000000;
}
/* ستون وضعیت دریا - شماره */
tbody td:nth-child(4) { 
    font-weight: 800;
    color: #0c4ef8;
}
/* ستون وضعیت نیروی باد - شماره */
tbody td:nth-child(2) { 
    font-weight: 400;
    color: #000000;
}

table thead tr th span {
    font-size: 13.8px;
}
.footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2rem;
}


/* استایل دکمه بازگشت به بالا */
#back-to-top-btn {
    display: none; /* در حالت عادی پنهان است */
    position: fixed; /* ثابت در صفحه نمایش */
    bottom: 20px; /* فاصله از پایین */
    right: 30px; /* فاصله از چپ */
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: #427dda; 
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 50%; 
    font-size: 20px; 
    width: 50px; 
    height: 50px; 
    text-align: center;
    transition: background-color 0.3s, opacity 0.3s; 
}

#back-to-top-btn:hover {
    background-color: #709adf; 
}




/* استایل دکمه بازگشت به صفحه اصلی */
/* استایل دکمه بازگشت به صفحه اصلی */
.back-to-home-wrapper {
    width: 100%;
    /* تغییر: تراز کردن محتوا به چپ */
    text-align: left; 
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* افزودن کمی فاصله از گوشه چپ برای دکمه بالایی */
    padding-left: 1.5rem; 
}

/* دکمه پایینی در مرکز باقی می‌ماند */
.back-to-home-wrapper.bottom-wrapper {
    text-align: center;
    padding-left: 0; 
}

/* ... (کدهای .back-to-home-btn) ... */
.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: white; 
    color: #1e293b; 
    border: none;
    border-radius: 12px; 
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, background-color 0.2s;
    line-height: 1;
}

.back-to-home-btn:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: #f8f8f8;
}

.arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* تغییر: بزرگتر کردن اندازه دایره */
    width: 1.8rem; 
    height: 1.8rem;
    border-radius: 50%;
    border: 2px solid #1e293b; 
    margin-right: 0.75rem; 
    /* تغییر: بزرگتر کردن فلش */
    font-size: 1.2rem; 
    font-weight: 900;
    /* چرخش فلش (برای راست به چپ) */
    transform: rotate(180deg); 
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    header {
        justify-content: center;
    }
    .table-wrapper {
        overflow-x: auto;
    }
    table {
        min-width: 800px;
    }
    #back-to-top-btn {
        display: none !important; 
    }
    .back-to-home-wrapper {
        display: none;
    }
}
