/* LogiflowPro Custom Styles */

* {
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-50: #f0f9ff;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    --secondary-700: #6d1ef7;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --success-500: #10b981;
    --success-600: #059669;
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f3e8ff 100%);
    min-height: 100vh;
    font-weight: 400;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Hero Section */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.6;
}

/* Buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    background: transparent;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
}

/* Features Section */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    border: none;
}

.modal-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1.5rem;
}

/* Forms */
.form-floating .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
}

.form-floating .form-control:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-floating label {
    color: #64748b;
    font-weight: 500;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Alert/Toast Styles */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
}

/* Language Switcher */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    border-radius: 8px;
    margin: 2px 4px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: 280px;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-link-custom {
    text-align: right;
}

html[dir="rtl"] .nav-link-custom i {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .feature-icon {
    margin-left: auto;
    margin-right: auto;
}

html[dir="rtl"] .brand-logo {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="rtl"] .user-avatar {
    margin-left: 1rem;
    margin-right: 0;
}

/* Arabic Font Support */
html[lang="ar"], 
html[lang="ar"] * {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* RTL Modal adjustments */
html[dir="rtl"] .modal-header .btn-close {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .form-floating label {
    left: auto;
    right: 0;
    transform-origin: right center;
}

/* RTL Button adjustments */
html[dir="rtl"] .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] .btn .me-1,
html[dir="rtl"] .btn .me-2,
html[dir="rtl"] .btn .me-3 {
    margin-left: 0.25rem;
    margin-right: 0;
}

@media (max-width: 768px) {
    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    
    html[dir="rtl"] .main-content {
        margin-right: 0;
    }
}


