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

:root {
    --tick-blue: #18a0fb;
    --it-teal: #00d2b4;
    --crm-navy: #152c4a;
    --bg-light: #f4f7f6;
    --card-bg: #ffffff;
    --border-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light) !important;
    color: var(--crm-navy);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--crm-navy);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--tick-blue) 0%, var(--it-teal) 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    padding: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 180, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 180, 0.4);
    color: white;
}

.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid rgba(21, 44, 74, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    background-color: var(--card-bg);
}

.table thead th {
    background-color: var(--bg-light) !important;
    color: var(--crm-navy);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(21, 44, 74, 0.1);
    padding: 1.2rem 1rem;
}

.table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border-bottom-color: rgba(21, 44, 74, 0.05);
    font-size: 0.95rem;
}

/* --- ANIMATED BACKGROUND --- */
#loginScreen {
    min-height: 100vh;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(24, 160, 251, 0.4), rgba(0, 210, 180, 0.2));
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 210, 180, 0.3), rgba(21, 44, 74, 0.1));
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 30px) rotate(10deg); }
    100% { transform: translate(-20px, 50px) rotate(-5deg); }
}

.login-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(21, 44, 74, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.custom-form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid rgba(21, 44, 74, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
}

.custom-form-floating > .form-control:focus {
    border-color: var(--tick-blue);
    box-shadow: 0 0 0 4px rgba(24, 160, 251, 0.1);
}

.search-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(21, 44, 74, 0.1);
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- COMPACT SEARCH BAR --- */
.custom-search-group {
    border-radius: 8px;
    border: 1px solid rgba(21, 44, 74, 0.15);
    background-color: #fff;
    transition: all 0.2s ease;
}

.custom-search-group:focus-within {
    border-color: var(--tick-blue);
    box-shadow: 0 0 0 3px rgba(24, 160, 251, 0.1);
}

.custom-search-group .form-control {
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 0.9rem;
}

.modern-select {
    border-radius: 8px;
    border: 1px solid rgba(21, 44, 74, 0.15);
    font-size: 0.85rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    color: var(--crm-navy);
    background-color: var(--bg-light);
}

.modern-select:focus {
    border-color: var(--tick-blue);
    box-shadow: 0 0 0 3px rgba(24, 160, 251, 0.1);
}

.btn-primary-modern {
    padding: 0.4rem 1rem; /* Plus compact que l'ancien */
}

/* --- EMPTY STATE SUGGESTIONS --- */
.suggestion-btn {
    border-color: rgba(21, 44, 74, 0.15);
    color: var(--crm-navy);
    background-color: white;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background-color: var(--tick-blue);
    border-color: var(--tick-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 160, 251, 0.2);
}