﻿@import url(~/Content/Fonts/Iransans.css);

/* Main Colors */
:root {
    --primary-color: #9e0b0f;
    --secondary-color: #00ae9d;
    --accent-color: #00377b;
    --text-color: #58595b;
}

/* General Styles */
body {
    font-family: 'IRANSans', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Footer Styles */
.footer {
    background-color: var(--accent-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, rgba(128,128,128,0.7), rgba(255,255,255,0.7)), url('../Images/login-back.png') no-repeat center center fixed;
    background-size: cover; /* کل بک‌گراند را پوشش می‌دهد */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* باکس سمت راست */
    min-height: 100vh;
    position: relative;
}

    .login-body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(0,174,157,0.1), rgba(0,55,123,0.1));
        pointer-events: none;
    }

.login-page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start; /* باکس سمت راست */
    align-items: center;
    padding: 20px;
    background: linear-gradient(45deg, rgba(0,174,157,0.1), rgba(0,55,123,0.1));
}

.login-form-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* محتوا به سمت راست */
    justify-content: center;
    text-align: center;
    width: 500px; /* عرض باکس لاگین */
}

    .login-form-section img {
        width: 100px;
        height: auto;
        margin: 0 auto;
    }

    .login-form-section h2 {
        font-size: 16px;
        width: 100%;
        margin: 10px 0;
        color:#fff;
    }


.login-container {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31,38,135,0.15);
    border: 1px solid rgba(255,255,255,0.18);
    margin: 0 auto;
}

    .login-container h2 {
        color: #000000;
        text-align: center;
        margin-bottom: 30px;
        font-size: 24px;
    }

    .login-container h3 {
        color: #000000;
        text-align: center;
        margin-bottom: 30px;
        font-size: 12px;
        font-family:Calibri;
    }

.form-group {
    margin-bottom: 20px;
    color: #000000;
    text-align: right;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: white;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: #000000;
    font-family: 'IRANSans', sans-serif;
}

    .form-control::placeholder {
        color: rgba(255,255,255,0.7);
    }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #00ae9d;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'IRANSans', sans-serif;
}

    .btn-primary:hover {
        background: var(--accent-color);
    }

.error-message {
    color: #ff3333;
    text-align: center;
    display: block;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .login-page-container {
        justify-content: center; /* وسط صفحه */
        padding: 10px;
    }

    .login-form-section {
        width:90%; /* باکس بزرگ‌تر */
        align-items: center;
        text-align: center;
        padding: 20px;
        height:auto;
    }

    .login-body {
        justify-content: center;
    }
    .login-form-section img {
        width: 300px;
        height: auto;
        margin: 0 auto;
    }
    .login-container {
     width:900px;
    }
}

@media (max-width: 576px) {
    .login-form-section {
        width: 100%;
        padding: 10px;
    }
}

/* استایل‌های سلسله مراتبی */
.level-1-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

    .level-1-container .component.level-1 {
        flex: 0 0 calc(25% - 15px);
        min-width: 200px;
    }

/* کانتینرهای سطوح پایین‌تر */
.child-components-horizontal {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    min-height: 180px;
    align-items: stretch;
    border: 2px dashed #dee2e6;
    width: 100%;
    box-sizing: border-box;
}

    .child-components-horizontal.active {
        display: flex;
    }

    .child-components-horizontal .component {
        flex: 0 0 auto;
        min-width: 150px;
        margin: 0;
    }

/* استایل‌های سطح‌های مختلف */
.component.level-2 {
    background-color: #e9ecef !important;
    border-color: #6c757d !important;
}

.component.level-3 {
    background-color: #d1ecf1 !important;
    border-color: #17a2b8 !important;
}

.component.level-4 {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
}

/* نشانگر برای کامپوننت‌های دارای فرزند */
.child-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 14px;
    color: #6c757d;
    font-weight: bold;
}

/* استایل برای کامپوننت فعال */
.component.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* اسکرول بار برای کانتینر افقی */
.child-components-horizontal::-webkit-scrollbar {
    height: 8px;
}

.child-components-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.child-components-horizontal::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .child-components-horizontal::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* استایل‌های رسپانسیو برای سطوح مختلف */
@media (max-width: 1200px) {
    .level-1-container .component.level-1 {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 992px) {
    .level-1-container .component.level-1 {
        flex: 0 0 calc(50% - 15px);
    }

    .child-components-horizontal {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .level-1-container .component.level-1 {
        flex: 0 0 calc(100% - 15px);
    }

    .child-components-horizontal {
        flex-wrap: wrap;
        padding: 10px;
    }

        .child-components-horizontal .component {
            min-width: 120px;
        }
}