@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #279bd5;
    --primary-hover: #279bd5;
    --text-color: #2b2d42;
    --light-gray: #f8f9fa;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #f5f7fa54 0%, #c3cfe22c 100%);
    min-height: 100vh;
    color: var(--text-color);
}

/* Logo Title Styling */
.logo-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    color: #279bd5;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Login Button */
.btn-login {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
}

.btn-login:hover {
    background-color: #1e87b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 155, 213, 0.3);
}

/* Language Toggle Button */
#languageToggle {
    min-width: 80px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

#languageToggle:hover {
    background-color: #279bd5;
    border-color: #279bd5;
}

#languageToggle .en,
#languageToggle .ar {
    transition: all 0.2s ease;
    display: inline-block;
}

#languageToggle .en {
    font-weight: normal;
}

#languageToggle .ar {
    font-weight: bold;
}

[dir="ltr"] #languageToggle .en {
    font-weight: bold;
}

[dir="ltr"] #languageToggle .ar {
    font-weight: normal;
}

/* Feature Badges */
.feature-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.feature-badge:hover {
    background-color: var(--primary-color);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 155, 213, 0.3);
}

.feature-badge i {
    margin-left: 5px;
    font-size: 1.1em;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #279bd520 0%, #3a0ca320 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Feature Badges */


@media (min-width: 576px) {
    .feature-badge {
        display: inline-flex;
        width: auto;
        margin: 0;
        padding: 0.35rem 0.8rem;
    }
}

.feature-badge:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.feature-badge i {
    font-size: 0.9em;
}

/* Form Styles */
.form-control {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    background-color: var(--light-gray);
}

/* Sales Management Section Styles */
.features-list .feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    border-radius: 10px;
    cursor: help;
}

.features-list .feature-item:hover {
    transform: translateX(-5px);
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(39, 155, 213, 0.15) !important;
}

/* Tooltip Customization */
.tooltip {
    font-family: 'Tajawal', sans-serif;
}

.tooltip-inner {
    background-color: #2b2d42;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2b2d42;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .features-list .feature-item {
        padding: 12px;
    }
    
    .feature-icon {
        padding: 0.75rem !important;
    }
}

@media (max-width: 991.98px) {
    .row.min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
        align-items: flex-start;
    }
    
    .features-list {
        display: flex;
        gap: 15px;
        margin-bottom: 2rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f1f1;
    }
    
    .features-list::-webkit-scrollbar {
        height: 6px;
    }
    
    .features-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .features-list::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .feature-item {
        flex: 0 0 85%;
        margin-bottom: 0;
        scroll-snap-align: start;
        background: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Add a subtle gradient to indicate scrollability */
    .features-list::after {
        content: '';
        flex: 0 0 20px;
    }

@media (max-width: 767.98px) {
    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px 1.5rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 1.5rem;
    }
    
    .feature-item {
        flex: 1 1 calc(50% - 10px);
        padding: 12px;
        min-width: 0;
        margin: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .feature-item h5 {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 5px;
    }
    
    .feature-item p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-item i {
        font-size: 1rem;
        margin-left: 5px;
    }
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(39, 155, 213, 0.25);
    background-color: #fff;
}

.form-floating > label {
    padding: 1rem 1rem;
    color: #6c757d;
}



a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Custom checkbox */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}
}

.text-customer{
    color: #279bd5;
}

.bg-customer{
    background: #279bd5;
}
