/* --- TITLE & SUBTITLE --- */
.dashboard-title,
.prospects-title,
.projects-title,
.users-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
}
.dashboard-subtitle, 
.prospects-subtitle,
.projects-subtitle,
.users-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* --- DASHBOARD CARD --- */
.dashboard-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}
.dashboard-card:hover {
    transform: translateY(-0.188rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* --- HEADER & FOOTER --- */
.dashboard-card-header {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f1f1;
    background: #fafafa;
    border-radius: 1rem 1rem 0 0;
}
.dashboard-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}
.dashboard-card-footer {
    padding: 0.75rem 1.25rem;
    background: #fafafa;
    border-top: 1px solid #f1f1f1;
    text-align: right;
    border-radius: 0 0 1rem 1rem;
}
.dashboard-card-footer a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #16a34a;
    transition: color 0.2s;
}
.dashboard-card-footer a:hover {
    color: #15803d;
}
.chart-wrapper {
    height: 20rem;
}
@media (max-width: 768px) {
    .chart-wrapper {
        height: 15.625rem;
    }
}

/* --- TABLE --- */
.dashboard-table {
    border-collapse: collapse;
    font-size: 0.9rem;
}
.dashboard-table thead {
    background: #f9fafb;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.dashboard-table th {
    text-align: left;
    font-weight: 600;
    padding: 0.6rem;
    background: #FFF;
    color: #475569;
    border-bottom: 1.5px solid #e5e7eb;
}
.dashboard-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.dashboard-table tr:hover {
    background-color: #f9fafb;
}

/* --- BADGES (status) --- */
.status-badge{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100vmax;
    text-transform: capitalize;
    line-height: 1;
}
.status-badge::before{
    content: "";
    flex: 0 0 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: currentColor;
}
.status-to_prospect { 
    background: #f1f5f9;
    color: #334155;
}
.status-first_appointment { 
    background: #e0f2fe;
    color: #0284c7;
}
.status-pending { 
    background: #fef3c7;
    color: #b45309;
}
.status-interested { 
    background: #e0e7ff;
    color: #3730a3;
}
.status-not_interested { 
    background: #fee2e2; 
    color: #dc2626;
}
.status-to_call_back { 
    background: #fef9c3;
    color: #9C6500;
}
.status-contacted { 
    background: #dbeafe; 
    color: #2563eb;
}
.status-contract_to_sign { 
    background: #fae8ff;
    color: #9333ea;
}
.status-design_to_define { 
    background: #ffedd5;
    color: #c2410c;
}
.status-signed { 
    background: #dcfce7; 
    color: #16a34a;
}
.status-default { 
    background: #f3f4f6; 
    color: #374151; 
}
.status-yes { 
    background: #dcfce7; 
    color: #16a34a;
}
.status-no { 
    background: #e5e7eb; 
    color: #374151;
}

/* --- CARDS STATS --- */
.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: 100%;
}
.stat-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    transform: translateY(-0.125rem);
}
.stat-icon-box {
    border-radius: 0.625rem;
    background: #edf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem;
    color: #374151;
    flex-shrink: 0;
}
.stat-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}
.stat-value {
    margin: 0.2rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}
.stat-change {
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.stat-change .fa-arrow-up {
    color: #16a34a;
}
.stat-change .fa-arrow-down {
    color: #dc2626;
}

/* --- CARD TABLE --- */
.table-card {
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
    padding: 0;
}
.table-card-body {
    padding: 1.25rem;
}
.table-card-footer {
    padding: 0.75rem 1.25rem 0;
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
    border-radius: 0 0 1rem 1rem;
}

/* --- ADD BOUTON --- */
.add-btn {
    background-color: #16a34a;
    color: #fff !important;
    border-radius: 0.625rem;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease;
}
.add-btn:hover {
    background-color: #15803d;
    border-color: #15803d;
}

/* --- PAGINATION --- */
.pagination .page-link {
    color: #16a34a;
}
.pagination .page-item.active .page-link {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.pagination .page-link:hover {
    background-color: #dcfce7;
    color: #16a34a;
}
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.4);
    border-color: #16a34a;
    outline: none;
}

/* --- CUSTOM SELECT --- */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 8rem;
}
.custom-select-toggle {
    width: 100%;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-select-toggle:hover {
    border-color: #16a34a;
}
.custom-select-toggle i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    color: #6b7280;
}
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 0;
    display: none;
    z-index: 50;
}
.custom-select-options.show {
    display: block;
}
.custom-select-options li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.custom-select-options li:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}
.custom-select-options li:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
    border-bottom: none;
}
.custom-select-options li:hover {
    background: #f0fdf4;
    color: #16a34a;
}
.custom-select-options li.selected {
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
}
.dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-size: 0.9rem;
}
.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child {
    border-bottom: none;
}
.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dropdown-item i {
    color: #6b7280;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: #f0fdf4;
    color: #16a34a;
}
.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #16a34a;
}

/* --- ROLE BADGE --- */
.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.badge-role i {
    font-size: 0.9rem;
}
.badge-admin {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
}
.badge-admin i {
    color: #ffd700;
}
.badge-user {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

/* --- FORM CARD --- */
.form-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.04);
}

/* --- INPUTS --- */
.form-input {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background-color: #fafafa;
}
.form-input:focus, 
.form-select:focus {
    border-color: #16a34a;
    outline: none;
    box-shadow: none;
}

/* --- LABELS --- */
.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #374151;
    letter-spacing: 0.5px;
}

/* --- CANCEL BUTTON */
.cancel-btn {
    border-radius: 0.625rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid rgba(22, 163, 74, 0.6);
    color: #16a34a;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.cancel-btn:hover {
    border-color: #15803d;
    color: #15803d;
}
.form-label.required::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

/* --- BACK BUTTON --- */
.back-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #16a34a;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.back-button:hover {
    background: #16a34a;
    color: #FFF;
}
