/* Frexbank - Styles CSS Réutilisables */
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #F23322;
    --dark-red: #C41E3A;
    --darker-red: #731E17;
    --light-gray: #F8FAFC;
    --medium-gray: #E2E8F0;
    --dark-gray: #64748B;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-gray);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-gray);
}

/* Mobile Top Bar */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-red);
    color: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    width: 100%;
}

.mobile-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 100%;
}

.mobile-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 8px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    
}

.mobile-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    width:70%;
    flex-shrink: 1;
    text-align:center;
}
.mobile-logo-notification-icon
{
    width:15%;
    text-align:center;
    flex-shrink: 0;
    color:#fff;
    font-size:20px;
}

/* Desktop Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 32px 24px 24px;
    border-bottom: 1px solid var(--medium-gray);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.nav-menu {
    list-style: none;
    padding: 0 16px;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
a {text-decoration: none;}
/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    background: var(--light-gray);
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.header-text p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--medium-gray);
    box-shadow: var(--shadow-sm);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    font-size: 16px;
}

.user-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-info p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Notification Component */
.notification {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.notification.success {
    border-left: 4px solid var(--success);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), var(--white));
}

.notification.warning {
    border-left: 4px solid var(--warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), var(--white));
}

.notification.error {
    border-left: 4px solid var(--error);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), var(--white));
}

.notification.info {
    border-left: 4px solid var(--primary-red);
    background: linear-gradient(90deg, rgba(242, 51, 34, 0.05), var(--white));
}

.notification-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notification.success .notification-icon { color: var(--success); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.error .notification-icon { color: var(--error); }
.notification.info .notification-icon { color: var(--primary-red); }

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--medium-gray);
    padding: 16px 0 24px;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0 16px;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--primary-red);
    background: rgba(242, 51, 34, 0.1);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-nav-text {
    font-size: 12px;
    font-weight: 600;
}

/* Cards and Buttons */
.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
    border: 1px solid var(--medium-gray);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--medium-gray);
    transform: translateY(-1px);
}

.card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    font-size: 14px;
    background: var(--white);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(242, 51, 34, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .mobile-top-bar {
        display: block !important;
    }

    .main-content {
        padding: 88px 16px 100px 16px;
    }

    .mobile-nav {
        display: block;
    }

    .content-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .header-text h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .header-text p {
        font-size: 14px;
    }

    .user-profile {
        padding: 8px 12px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .user-info h3 {
        font-size: 13px;
    }

    .user-info p {
        font-size: 11px;
    }

    .card {
        padding: 24px 20px;
    }

    .notification {
        margin: 0 -16px 24px;
        border-radius: 0;
        border-left: none;
        border-top: 4px solid;
    }

    .notification.success {
        border-top-color: var(--success);
    }

    .notification.warning {
        border-top-color: var(--warning);
    }

    .notification.error {
        border-top-color: var(--error);
    }

    .notification.info {
        border-top-color: var(--primary-red);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 88px 12px 100px 12px;
    }

    .mobile-logo-text {
        font-size: 18px;
    }

    .mobile-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .mobile-top-bar {
        padding: 14px 16px;
    }

    .card {
        padding: 20px 16px;
    }
}

/* Loading States */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.mobile-nav-link:focus,
.notification-close:focus,
.form-input:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(242, 51, 34, 0.2);
    color: var(--text-primary);
}

/* Additional Professional Touches */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print Styles */
@media print {
    .sidebar, .mobile-nav, .notification, .mobile-top-bar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}