﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --green-main: #00695c;
    --green-light: #e8f5e9;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(-45deg, var(--green-light), #ffffff, #f1f8e9, #e0f2f1);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    margin: 0;
    padding: 0;
    direction: rtl;
    zoom: 0.85; /* تصغير العرض قليلاً */
    overflow-x: hidden;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 20px;
    margin: 20px auto;
    max-width: 98%;
}

/* العنوان الرئيسي */
h1 {
    text-align: center;
    color: var(--green-main);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* عنوان الحمولات */
.loads-title {
    background-color: var(--green-main);
    color: white;
    padding: 8px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* الجداول */
.form-table {
    width: 95%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .form-table td,
    .form-table th {
        padding: 6px 8px;
        border: 1px solid #ddd;
        font-size: 14px;
        vertical-align: middle;
    }

        .form-table td:first-child,
        .form-table td:nth-child(3),
        .form-table th {
            font-weight: bold;
            color: var(--green-main);
            white-space: nowrap;
        }

    /* الحقول */
    .form-table input[type="text"],
    .form-table input[type="date"],
    .form-table input[type="number"] {
        width: 100%;
        padding: 6px;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 14px;
        font-weight: bold;
        transition: 0.3s ease;
        height: 36px;
    }

    .form-table input:hover,
    .form-table input:focus {
        border-color: var(--green-main);
        box-shadow: 0 0 5px var(--green-main);
        outline: none;
    }

/* جدول الحمولات */
.derivatives-table th,
.derivatives-table td {
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}

.derivatives-table th {
    background-color: #e0f2f1;
    color: #004d40;
    font-weight: bold;
}

/* زر الحفظ */
.btn-submit {
    padding: 10px 26px;
    font-size: 16px;
    background-color: var(--green-main);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-submit:hover {
        background-color: #004d40;
    }

/* منطقة الحفظ */
.submit-section {
    text-align: center;
    margin-top: 20px;
}

/* رسائل الخطأ */
.text-danger {
    margin-top: 10px;
    color: #d32f2f;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-table,
    .derivatives-table {
        font-size: 12px;
    }

        .form-table input,
        .derivatives-table input {
            font-size: 12px;
            padding: 5px;
        }

    .btn-submit {
        font-size: 14px;
        padding: 8px 20px;
    }

    h1 {
        font-size: 20px;
    }
    .derivatives-table input {
        width: 100%;
        box-sizing: border-box;
        height: 36px;
        font-size: 14px;
    }
    .btn-secondary {
        background-color: #757575;
        border-color: #757575;
        color: white;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
    }


    
}
