/* משתני צבעים */
:root {
    /* Main colors */
    --primary-color: #2c3e50; /* Dark blue/slate for primary elements */
    --secondary-color: #3498db; /* Bright blue for secondary elements and highlights */
    --accent-color: #e74c3c; /* Red for accent elements and important actions */
    /* Utility colors */
    --light-color: #ecf0f1; /* Light gray/almost white for backgrounds */
    --dark-color: #2c3e50; /* Same as primary for dark elements/text */
    --success-color: #2ecc71; /* Green for success messages and positive indicators */
    --error-color: #e74c3c; /* Red for error messages and alerts (same as accent) */
    /* Additional error color options */
    --error-color-dark: #c0392b; /* Darker red for hover states or emphasis */
    --error-color-light: #f8d7da; /* Light red for error backgrounds */
    /* Alert colors for messages */
    --warning-color: #f39c12; /* Orange/amber for warnings */
    --info-color: #3498db; /* Same as secondary for informational messages */
}

/* איפוס בסיסי */
* {
    margin: 0;
    padding: 0;
    /*   box-sizing: border-box;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* סגנון גוף העמוד */
body {
    background-color: #f9f9f9;
    color: #333;
    direction: rtl;
}

/* מיכל ראשי */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* הדר (כותרת עליונה) */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* לוגו */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

    .logo span {
        color: var(--secondary-color);
    }

/* תפריט ניווט */
nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-right: 20px;
    }

        nav ul li:last-child {
            margin-right: 0;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

            nav ul li a:hover {
                color: var(--secondary-color);
            }

/* אזור גיבור (Hero) */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

/* כפתורים */
.btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    border-radius: 5px !important;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* Default button style (accent color) */
.btn-default, .btn {
    background-color: var(--accent-color);
}

    .btn-default:hover, .btn:hover {
        background-color: #c0392b;
    }

/* Primary button style */
.btn-primary {
    background-color: var(--secondary-color);
}

    .btn-primary:hover {
        background-color: #2980b9;
    }

/* Secondary button style */
.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    margin-right: 15px;
}

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Success button style */
.btn-success {
    background-color: var(--success-color);
}

    .btn-success:hover {
        background-color: #27ae60;
    }

/* Warning button style */
.btn-warning {
    background-color: #f39c12;
}

    .btn-warning:hover {
        background-color: #e67e22;
    }

/* Info button style */
.btn-info {
    background-color: #3498db;
}

    .btn-info:hover {
        background-color: #2980b9;
    }

/* Danger button style */
.btn-danger {
    background-color: #e74c3c;
}

    .btn-danger:hover {
        background-color: #c0392b;
    }

/* Light button style */
.btn-light {
    background-color: #ecf0f1;
    color: #2c3e50;
}

    .btn-light:hover {
        background-color: #bdc3c7;
    }

/* Dark button style */
.btn-dark {
    background-color: #34495e;
}

    .btn-dark:hover {
        background-color: #2c3e50;
    }

/* Outline button styles */
.btn-outline {
    background-color: transparent;
    border: 2px solid currentColor;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background-color: transparent;
}

    .btn-outline-primary:hover {
        background-color: var(--secondary-color);
        color: white;
    }

.btn-outline-success {
    color: var(--success-color);
    border: 2px solid var(--success-color);
    background-color: transparent;
}

    .btn-outline-success:hover {
        background-color: var(--success-color);
        color: white;
    }

/* Button sizes */
.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* כפתור ברוחב מלא */
.btn-block {
    display: block;
    width: 100%;
}

/* אזור תכונות */
.features {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-size: 2.2rem;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .section-title p {
        font-size: 1.1rem;
        color: #666;
        max-width: 700px;
        margin: 0 auto;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* אזור קריאה לפעולה */
.cta {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
    color: white;
}

    .cta h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

/* אזור המלצות */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

    .testimonial-author img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        margin-left: 15px;
    }

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* כותרת תחתונה */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: #ccc;
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .footer-column ul li a:hover {
                color: var(--secondary-color);
            }

.social-links {
    display: flex;
    margin-top: 15px;
}

    .social-links a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

        .social-links a:hover {
            background-color: var(--secondary-color);
            transform: translateY(-3px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* עיצוב למסך התחברות */
.login-container {
    max-width: 400px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    text-align: center;
}

    .login-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .login-header p {
        font-size: 1rem;
        opacity: 0.8;
    }

.login-body {
    padding: 30px;
}

/* עיצוב אוטומטי לאלמנטי select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 3px 5px !important;
    padding-left: 20px !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 5px center;
    background-size: 16px;
    background-color: white;
}

    select:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }
/* עיצוב אוטומטי לאלמנטי קלט */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="url"],
textarea {
    width: 100%;
    padding: 3px 8px !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

textarea {
    padding: 0 !important;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[type="time"]:focus,
    input[type="search"]:focus,
    input[type="url"]:focus,
    textarea:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

/* עיצוב אוטומטי לכפתורי input */
input[type="button"] {
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    background-color: transparent;
    text-decoration: none;
    border-radius: 5px !important;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    text-align: center;
}

    input[type="button"]:hover {
        background-color: var(--secondary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
/* סגנון טפסים */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--primary-color);
        font-weight: 500;
    }



.form-control {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

/* סגנון אלמנטי בחירה (select) */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
    padding-left: 40px;
}

    select.form-control:focus {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }

/* Custom select with label effect */
.form-group.has-select {
    position: relative;
}

    .form-group.has-select label {
        transition: all 0.3s ease;
    }

.select-wrapper {
    position: relative;
}

/* סגנונות נוספים לטופס */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-left: 8px;
    }

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* סגנון עמוד התחברות */
.signup-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

    .signup-link a {
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

.or-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .or-divider:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #ddd;
        z-index: 1;
    }

    .or-divider span {
        display: inline-block;
        background-color: white;
        padding: 0 15px;
        position: relative;
        z-index: 2;
        color: #777;
    }

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        background-color: #f5f5f5;
        transform: translateY(-2px);
    }

    .social-btn img {
        margin-left: 8px;
        width: 20px;
        height: 20px;
    }

.login-footer {
    text-align: center;
    padding: 0 30px 30px;
    color: #777;
    font-size: 0.85rem;
}

/* עיצוב רספונסיבי */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

        nav ul li {
            margin: 0 10px 10px;
        }

    .hero h1 {
        font-size: 2.2rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        margin-bottom: 15px;
        width: 100%;
        max-width: 300px;
    }

    .btn-secondary {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        height: auto;
    }

    .login-body {
        padding: 20px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .remember-me {
        margin-bottom: 10px;
    }

    .social-login {
        flex-direction: column;
    }
}

/* עיצוב לדף ממורכז (כמו עמוד ההתחברות) */
body.centered-layout {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corners {
    height: 26px;
}

.corners2, .corners5 {
    border-radius: 5px 5px 0 0;
    padding: 5px 0 0;
    width: 125px;
    margin-right: 2px;
    float: right;
    background: var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    height: 20px;
    text-align: center;
    margin-bottom: -1px;
    border: 1px solid #ddd;
    border-bottom: none;
    font-size: 0.9rem;
}

    .corners5:hover, .corners2:hover {
        background-color: var(--secondary-color);
    }

    .corners5.active, .corners2.active {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        border-color: var(--secondary-color);
        border-bottom: 1px solid white;
    }

.loginView1, .loginstatus {
    font-size: 14px;
    color: var(--secondary-color) !important;
}

.menu-item-icon {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-icon-inline {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .stat-icon-inline:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/*alerts*/
/* Alert styling */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--secondary-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: var(--accent-color);
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

/* Text color classes */
.text-success {
    color: var(--success-color);
    display: block;
    margin-bottom: 15px;
}

.text-danger {
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
}

/*.popUp {
    position:fixed;
}*/

/* --- שורות זebra בטבלאות GridView4 (סגנון Bootstrap table-striped) --- */
/*table.GridView4 tbody tr:nth-of-type(even) {
    background-color: #e8edf4;
}

table.GridView4 tbody tr:nth-of-type(odd) {
    background-color: transparent;
}*/

/* תאים יורשים רקע מהשורה (למנוע רקע לבן ששובר את הזebra) */
/*table.GridView4 tbody tr:nth-of-type(even) td,
table.GridView4 tbody tr:nth-of-type(odd) td {
    background-color: transparent;
}*/
