﻿/* تنسيقات واجهة دخول النظام - إصدار بدون متغيرات CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

/* تدرج لوني ثابت */
body {
    background: linear-gradient(to bottom, #117a8b 0%, #17a2b8 40%, #d9d9d9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    color: #333;
    direction: rtl;
    overflow-x: hidden;

}

/* تنسيقات عامة */
.form-control, .btn, .card, .nav-tabs {
    border-radius: 8px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #117a8b 0%, #17a2b8 40%, #d9d9d9 100%);
    z-index: -1;
}

.container.text-center {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .container.text-center h2 {
        color: #117a8b;
        font-weight: bold;
        margin-top: 15px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

h1.h4 {
    color: white;
    background-color: rgba(17, 122, 139, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin: 0 auto 30px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* تصميم التبويبات */
.custom-tabs {
    border-bottom: 2px solid #d9d9d9;
    padding-bottom: 5px;
}

    .custom-tabs .nav-link {
        color: #555;
        font-weight: 600;
        padding: 12px 25px;
        margin: 0 5px;
        border: 1px solid transparent;
        transition: all 0.3s;
        border-radius: 8px 8px 0 0;
    }

        .custom-tabs .nav-link i {
            margin-left: 8px;
            font-size: 1.1rem;
        }

        .custom-tabs .nav-link:hover {
            color: #117a8b;
            background-color: rgba(255, 255, 255, 0.7);
            border-color: #d9d9d9;
        }

        .custom-tabs .nav-link.active {
            color: white;
            background-color: #117a8b;
            border-color: #117a8b;
            position: relative;
        }

            .custom-tabs .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: -2px;
                right: 0;
                width: 100%;
                height: 2px;
                background-color: white;
            }

/* تصميم محتويات التبويب */
.tab-content {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    min-height: 500px;
}

.tab-pane {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* تصميم قسم تسجيل الدخول */
#login {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px !important;
}

.login-box {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #d9d9d9;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #117a8b;
    }

.form-control {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    transition: all 0.3s;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: #17a2b8;
        box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
    }

.btn-primary {
    background-color: #117a8b;
    border-color: #117a8b;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

    .btn-primary:hover {
        background-color: #0e6c7a;
        border-color: #0e6c7a;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* تصميم قسم حول النظام */
.card.shadow-sm {
    border: none;
    transition: all 0.3s;
    overflow: hidden;
}

    .card.shadow-sm:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .card.shadow-sm video {
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

.card-body.text-center h6 {
    color: #117a8b;
    margin-top: 10px;
}

.text-primary.fw-bold {
    color: #117a8b !important;
}

/* تصميم قسم اتصل بنا */
.text-danger.fs-1 {
    color: #dc3545 !important;
}

.card.text-center {
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

    .card.text-center:hover {
        transform: translateY(-5px);
    }

/* تصميم الفوتر */
footer {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    border-top: 2px solid #117a8b;
    z-index: 1000;
}

    footer small {
        font-size: 0.95rem;
    }

    footer a {
        transition: all 0.3s;
    }

        footer a:hover {
            color: #ff6b6b !important;
            text-decoration: underline !important;
        }

/* تصميم كابتشا */
#imgCaptcha {
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
}

#lblMessage {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .container.text-center {
        margin-top: 10px;
        padding: 10px;
    }

        .container.text-center img {
            width: 150px !important;
        }

    .custom-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

    h1.h4 {
        font-size: 1.3rem;
        padding: 12px;
        margin-bottom: 20px;
    }

    footer {
        padding: 15px !important;
    }
}

@media (max-width: 576px) {
    .custom-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
        margin: 0 2px;
    }

        .custom-tabs .nav-link i {
            margin-left: 5px;
            font-size: 1rem;
        }

    .login-box {
        padding: 25px 15px;
    }

    .btn-primary, .btn-danger {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* تصميمات إضافية للتحسين */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: white;
    background-color: #117a8b;
    border-color: #117a8b;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

    .nav-tabs .nav-link {
        margin-bottom: -1px;
        border: 1px solid transparent;
    }

        .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
            border-color: #e9ecef #e9ecef #dee2e6;
        }

.bi {
    vertical-align: middle;
}

/* تنسيقات خاصة للفيديوهات */
video {
    width: 100%;
    background-color: #000;
}

/* تحسين مظهر الزر في قسم حول النظام */
a.btn.btn-danger.btn-lg.px-5 {
    margin-top: 20px;
    background-color: #dc3545;
    border-color: #dc3545;
}

    a.btn.btn-danger.btn-lg.px-5:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

/* تحسين مظهر الخريطة */
iframe {
    width: 100%;
    border-radius: 8px;
}
