/**
 * Styles pour l'espace professionnel de LaverieLocale
 */

/* Variables */
:root {
    --pro-primary: #667eea;
    --pro-primary-dark: #5a70d9;
    --pro-secondary: #764ba2;
    --pro-secondary-dark: #6a4291;
    --pro-gradient: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-secondary) 100%);
    --pro-gradient-hover: linear-gradient(135deg, var(--pro-primary-dark) 0%, var(--pro-secondary-dark) 100%);
    --pro-text-dark: #333333;
    --pro-text-medium: #666666;
    --pro-text-light: #999999;
    --pro-border: #dddddd;
    --pro-border-light: #eeeeee;
    --pro-success: #4caf50;
    --pro-warning: #ff9800;
    --pro-danger: #f44336;
    --pro-info: #2196f3;
    --pro-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --pro-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --pro-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Styles généraux */
body.pro-area {
    background-color: #f8f9fa;
    color: var(--pro-text-dark);
}

/* Bannières images des pages pro */
.pro-hero { margin-bottom: 1.5rem; }
.pro-hero-img { width: 100%; max-width: 1180px; height: auto; display: block; border-radius: 12px; margin: 0 auto; }

/* Paddings des pages pro (sans marge supplémentaire autour) */
.pro-dashboard { padding: 0; }
.pro-laundromats { padding: 0; }
.pro-profile { padding: 0; }

.pro-header {
    background: var(--pro-gradient);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--pro-shadow-md);
}

.pro-header h1 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pro-header p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Cards */
.pro-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--pro-shadow-sm);
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.pro-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pro-shadow-md);
}

.pro-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--pro-border-light);
    background-color: #f8f9fa;
}

.pro-card-header h3 {
    margin-bottom: 0;
    color: var(--pro-text-dark);
    font-weight: 600;
}

.pro-card-body {
    padding: 1.5rem;
}

.pro-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--pro-border-light);
    background-color: #f8f9fa;
}

/* Formulaires */
.pro-form .form-group {
    margin-bottom: 1.5rem;
}

.pro-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--pro-text-dark);
}

.pro-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pro-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pro-form .form-control:focus {
    border-color: var(--pro-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.pro-form .form-check {
    margin-bottom: 1rem;
}

.pro-form .form-check-input {
    margin-right: 0.5rem;
}

.pro-form .form-text {
    font-size: 0.875rem;
    color: var(--pro-text-light);
}

.pro-form .required {
    color: var(--pro-danger);
}

/* Boutons */
.pro-btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.pro-btn-primary {
    background: var(--pro-gradient);
    color: white;
    border: none;
}

.pro-btn-primary:hover {
    background: var(--pro-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--pro-shadow-sm);
    color: white;
}

.pro-btn-outline {
    background-color: transparent;
    border: 1px solid var(--pro-primary);
    color: var(--pro-primary);
}

.pro-btn-outline:hover {
    background-color: var(--pro-primary);
    color: white;
}

.pro-btn-block {
    display: block;
    width: 100%;
}

/* Alertes */
.pro-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.pro-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pro-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pro-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.pro-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tableaux */
.pro-table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--pro-text-dark);
    border-collapse: collapse;
}

.pro-table th,
.pro-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--pro-border);
}

.pro-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--pro-border);
    background-color: #f8f9fa;
}

.pro-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.pro-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.pro-badge-primary {
    background-color: var(--pro-primary);
    color: white;
}

.pro-badge-success {
    background-color: var(--pro-success);
    color: white;
}

.pro-badge-warning {
    background-color: var(--pro-warning);
    color: white;
}

.pro-badge-danger {
    background-color: var(--pro-danger);
    color: white;
}

/* Utilitaires */
.pro-text-center {
    text-align: center;
}

.pro-text-right {
    text-align: right;
}

.pro-mt-1 {
    margin-top: 0.5rem;
}

.pro-mt-2 {
    margin-top: 1rem;
}

.pro-mt-3 {
    margin-top: 1.5rem;
}

.pro-mb-1 {
    margin-bottom: 0.5rem;
}

.pro-mb-2 {
    margin-bottom: 1rem;
}

.pro-mb-3 {
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pro-header {
        padding: 1.5rem 0;
    }
    
    .pro-card-header,
    .pro-card-body,
    .pro-card-footer {
        padding: 1rem;
    }
    
    .pro-btn {
        padding: 0.5rem 1rem;
    }
}

/* Dashboard Pro */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--pro-shadow-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pro-shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--pro-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.stat-content h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--pro-text-dark);
}

.stat-content p {
    margin: 0;
    color: var(--pro-text-medium);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--pro-shadow-sm);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pro-shadow-md);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--pro-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    aspect-ratio: 1;
}

.action-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.action-icon i.bi {
    padding-bottom: 4px;
}

.stat-icon i.bi {
    padding-bottom: 4px;
}

.action-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--pro-text-dark);
}

.action-content p {
    margin: 0;
    color: var(--pro-text-medium);
}

/* Cartes liste de laveries (dashboard + page Mes laveries) */
.laundromats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.laundromat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--pro-shadow-sm);
    padding: 1.5rem;
    overflow: hidden;
}
.laundromat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.laundromat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
}
.laundromat-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100%;
}
.laundromat-status.verified { background-color: #d4edda; color: #155724; }
.laundromat-status.pending { background-color: #fff3cd; color: #856404; }
.laundromat-address { color: #666; margin-bottom: 1rem; display: flex; align-items: center; word-break: break-word; }
.laundromat-address i { margin-right: 0.5rem; }
.laundromat-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.laundromat-stat { display: flex; align-items: center; }
.laundromat-stat i { margin-right: 0.5rem; color: var(--pro-primary); }
.laundromat-actions { display: flex; gap: 0.5rem; }
.view-all { text-align: center; margin-top: 1.5rem; }

/* États vides */
.empty-state { background-color: #fff; border-radius: 8px; box-shadow: var(--pro-shadow-sm); padding: 3rem 2rem; text-align: center; }
.empty-icon { width: 80px; height: 80px; background: var(--pro-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.empty-icon i { font-size: 2.5rem; color: #fff; }

/* Alertes locales des pages pro (scopées) */
.pro-area .alert { padding: 1rem; border-radius: 6px; border: 1px solid transparent; }
.pro-area .alert-info { background-color: #e7f1ff; color: #0b5ed7; border-color: #b6d4fe; }

/* Section "Mes demandes en attente" */
.pending-header { background: #fffdf5; border-bottom: 1px solid #f6e9c5; }
.table-pending thead th { background: #fafafa; color: #444; font-weight: 600; border-bottom: 1px solid #eee; }
.table-pending tbody tr:hover { background: #fcfcff; }
.table-pending td, .table-pending th { vertical-align: middle; }
.table-pending tbody td:nth-child(1) { font-weight: 600; white-space: nowrap; }
.table-pending tbody td:nth-child(2),
.table-pending tbody td:nth-child(3) { color: #6b7280; }
.table-pending tbody td:nth-child(5) { width: 90px; white-space: nowrap; }
.table-pending .badge { border-radius: 999px; padding: .35rem .75rem; font-size: .85rem; }
@media (max-width: 768px) {
  .table-pending thead { display: none; }
  .table-pending tbody tr { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: .75rem 1rem; border-bottom: 1px solid #f1f5f9; }
  .table-pending tbody td { display: block; padding: .125rem 0; }
  .table-pending tbody td:nth-child(4) { margin-top: .25rem; }
  .table-pending tbody td:nth-child(5) { margin-top: .25rem; }
}

/* Navigation et footer du layout pro (extraction du inline) */
.pro-navigation { margin-bottom: 2rem; }
.pro-navigation ul { display: flex; list-style: none; padding: 0; margin: 0; background-color: #fff; border-radius: 8px; box-shadow: var(--pro-shadow-sm); overflow: hidden; }
.pro-navigation li { flex: 1; }
.pro-navigation a { display: flex; align-items: center; justify-content: center; padding: 1rem; color: #333; text-decoration: none; font-weight: 500; transition: background-color 0.2s; text-align: center; }
.pro-navigation a i { margin-right: 0.5rem; }
.pro-navigation a:hover { background-color: #f8f9fa; }
.pro-navigation a.active { background: var(--pro-gradient); color: #fff; }
footer { margin-top: 3rem; padding: 2rem 0; background-color: #f8f9fa; border-top: 1px solid #eee; }
.footer-links { margin-top: 1rem; }
.footer-links a { margin-right: 1.5rem; color: #666; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.logout-link { color: #f44336 !important; }
@media (max-width: 768px) {
  .pro-navigation ul { flex-direction: column; }
  .pro-navigation a { padding: 0.75rem; }
}

/* Profil (extraction) */
.profile-card { background-color: #fff; border-radius: 8px; box-shadow: var(--pro-shadow-sm); padding: 2rem; }
.pro-profile .form-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #eee; }
.pro-profile .form-section:last-child { margin-bottom: 1.5rem; padding-bottom: 0; border-bottom: none; }
.pro-profile .form-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #333; }
.pro-profile .section-info { color: #666; margin-bottom: 1.5rem; }
.pro-profile .form-row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.pro-profile .form-row > .form-group { padding-right: 15px; padding-left: 15px; flex: 0 0 100%; }
@media (min-width: 768px) { .pro-profile .form-row .col-md-6 { flex: 0 0 50%; max-width: 50%; } }
.pro-profile .form-group { margin-bottom: 1.5rem; }
.pro-profile .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.pro-profile .form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.pro-profile .form-control:disabled { background-color: #f8f9fa; cursor: not-allowed; }
.pro-profile .form-check { margin-bottom: 1rem; }
.pro-profile .form-check-input { margin-right: 0.5rem; }
.pro-profile .form-text { font-size: 0.875rem; color: #6c757d; }
.pro-profile .form-actions { display: flex; gap: 1rem; }
.pro-profile .alert { padding: 1rem; margin-bottom: 1.5rem; border-radius: 4px; }
.pro-profile .alert-danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.pro-profile .alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.pro-profile .required { color: #dc3545; }
