/* Panel Garage - Styles Modernes avec Tons de Bleu - Design Premium */

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Variables CSS */
:root {
    --pg-primary: #00389B;
    --pg-primary-dark: #002a7a;
    --pg-primary-light: #0056d6;
    --pg-secondary: #0066cc;
    --pg-accent: #00a8ff;
    --pg-success: #28a745;
    --pg-danger: #dc3545;
    --pg-warning: #ffc107;
    --pg-info: #17a2b8;
    --pg-light: #f8f9fa;
    --pg-dark: #1a1a2e;
    --pg-white: #ffffff;
    --pg-gray: #6c757d;
    --pg-gray-light: #e9ecef;
    --pg-gray-lighter: #f5f7fa;
    --pg-border-radius: 12px;
    --pg-border-radius-lg: 16px;
    --pg-box-shadow: 0 4px 20px rgba(0, 56, 155, 0.08);
    --pg-box-shadow-hover: 0 8px 30px rgba(0, 56, 155, 0.15);
    --pg-box-shadow-card: 0 2px 15px rgba(0, 0, 0, 0.08);
    --pg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pg-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et Base */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.pg-auth-container,
.pg-dashboard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   FORMULAIRES D'AUTHENTIFICATION
   ============================================ */
.pg-auth-container {
    background: var(--pg-white);
    border-radius: var(--pg-border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 56, 155, 0.12);
    padding: 50px;
    max-width: 550px;
    position: relative;
    overflow: hidden;
}

.pg-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pg-primary) 0%, var(--pg-accent) 100%);
}

.pg-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--pg-gray-lighter);
    margin-bottom: 35px;
    gap: 10px;
}

.pg-tab {
    flex: 1;
    padding: 18px 25px;
    text-align: center;
    text-decoration: none;
    color: var(--pg-gray);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: var(--pg-transition);
    position: relative;
    border-radius: var(--pg-border-radius) var(--pg-border-radius) 0 0;
}

.pg-tab:hover {
    color: var(--pg-primary);
    background: rgba(0, 56, 155, 0.05);
}

.pg-tab.active {
    color: var(--pg-primary);
    border-bottom-color: var(--pg-primary);
    background: rgba(0, 56, 155, 0.08);
}

.pg-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pg-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-form-group label {
    font-weight: 600;
    color: var(--pg-dark);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.pg-form-group input[type="text"],
.pg-form-group input[type="email"],
.pg-form-group input[type="password"],
.pg-form-group input[type="tel"],
.pg-form-group input[type="number"],
.pg-form-group select,
.pg-form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--pg-gray-light);
    border-radius: var(--pg-border-radius);
    font-size: 15px;
    transition: var(--pg-transition);
    font-family: inherit;
    background: var(--pg-white);
}

.pg-form-group input:focus,
.pg-form-group select:focus,
.pg-form-group textarea:focus {
    outline: none;
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 4px rgba(0, 56, 155, 0.1);
    transform: translateY(-1px);
}

.pg-form-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================
   BOUTONS
   ============================================ */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--pg-border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg-transition);
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.pg-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pg-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pg-btn-primary {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
    color: var(--pg-white);
    box-shadow: 0 4px 15px rgba(0, 56, 155, 0.3);
}

.pg-btn-primary:hover {
    background: linear-gradient(135deg, var(--pg-primary-dark) 0%, var(--pg-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 56, 155, 0.4);
}

.pg-btn-primary:active {
    transform: translateY(0);
}

.pg-btn-secondary {
    background: var(--pg-gray-lighter);
    color: var(--pg-dark);
    border: 2px solid var(--pg-gray-light);
}

.pg-btn-secondary:hover {
    background: var(--pg-gray-light);
    border-color: var(--pg-gray);
    transform: translateY(-2px);
    box-shadow: var(--pg-box-shadow);
}

.pg-btn-small {
    padding: 10px 18px;
    font-size: 13px;
}

/* ============================================
   MESSAGES
   ============================================ */
.pg-success {
    padding: 18px 24px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b8dacc;
    border-radius: var(--pg-border-radius);
    margin-bottom: 25px;
    box-shadow: var(--pg-box-shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.pg-success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

.pg-error {
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f1b0b7;
    border-radius: var(--pg-border-radius);
    margin-bottom: 25px;
    box-shadow: var(--pg-box-shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.pg-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DASHBOARD
   ============================================ */
.pg-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 50%, var(--pg-accent) 100%);
    color: var(--pg-white);
    border-radius: var(--pg-border-radius-lg);
    margin-bottom: 35px;
    box-shadow: 0 8px 30px rgba(0, 56, 155, 0.25);
    position: relative;
    overflow: hidden;
}

.pg-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pg-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pg-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.pg-user-info span {
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pg-dashboard-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    background: var(--pg-white);
    padding: 20px;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow);
}

.pg-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--pg-gray);
    border-radius: var(--pg-border-radius);
    transition: var(--pg-transition);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.pg-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--pg-primary);
    transform: scaleY(0);
    transition: var(--pg-transition);
}

.pg-nav-item:hover {
    background: var(--pg-gray-lighter);
    color: var(--pg-primary);
    transform: translateX(5px);
}

.pg-nav-item:hover::before {
    transform: scaleY(1);
}

.pg-nav-item.active {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
    color: var(--pg-white);
    box-shadow: 0 4px 15px rgba(0, 56, 155, 0.3);
}

.pg-nav-item.active::before {
    transform: scaleY(1);
    background: var(--pg-white);
}

.pg-dashboard-content {
    background: var(--pg-white);
    padding: 40px;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow);
    min-height: 500px;
}

/* ============================================
   STATISTIQUES
   ============================================ */
.pg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.pg-stat-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: var(--pg-white);
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow-card);
    transition: var(--pg-transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pg-gray-lighter);
}

.pg-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pg-primary) 0%, var(--pg-accent) 100%);
    transform: scaleX(0);
    transition: var(--pg-transition);
}

.pg-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pg-box-shadow-hover);
}

.pg-stat-card:hover::before {
    transform: scaleX(1);
}

.pg-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.pg-stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
}

.pg-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.pg-stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--pg-success) 0%, #20c997 100%);
}

.pg-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ffffff 0%, #e6f7ff 100%);
}

.pg-stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--pg-accent) 0%, #0097e6 100%);
}

.pg-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.pg-stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--pg-warning) 0%, #ff9800 100%);
}

.pg-stat-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--pg-border-radius);
    background: linear-gradient(135deg, rgba(0, 56, 155, 0.1) 0%, rgba(0, 168, 255, 0.1) 100%);
    color: var(--pg-primary);
    flex-shrink: 0;
    transition: var(--pg-transition);
}

.pg-stat-card:nth-child(2) .pg-stat-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: var(--pg-success);
}

.pg-stat-card:nth-child(3) .pg-stat-icon {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 151, 230, 0.1) 100%);
    color: var(--pg-accent);
}

.pg-stat-card:nth-child(4) .pg-stat-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: var(--pg-warning);
}

.pg-stat-card:hover .pg-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.pg-stat-content h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--pg-dark);
    line-height: 1.2;
}

.pg-stat-content p {
    margin: 8px 0 0 0;
    font-size: 15px;
    color: var(--pg-gray);
    font-weight: 500;
}

/* ============================================
   TABLEAUX
   ============================================ */
.pg-products-table,
.pg-orders-table {
    overflow-x: auto;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow-card);
}

.pg-products-table table,
.pg-orders-table table,
.pg-recent-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pg-white);
    border-radius: var(--pg-border-radius-lg);
    overflow: hidden;
}

.pg-products-table thead,
.pg-orders-table thead,
.pg-recent-orders-table thead {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
    color: var(--pg-white);
}

.pg-products-table th,
.pg-orders-table th,
.pg-recent-orders-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pg-products-table td,
.pg-orders-table td,
.pg-recent-orders-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--pg-gray-lighter);
    font-size: 14px;
}

.pg-products-table tbody tr:hover,
.pg-orders-table tbody tr:hover,
.pg-recent-orders-table tbody tr:hover {
    background: var(--pg-gray-lighter);
    transform: scale(1.01);
    transition: var(--pg-transition);
}

.pg-products-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--pg-border-radius);
    box-shadow: var(--pg-box-shadow-card);
}

.pg-no-image {
    display: inline-block;
    padding: 12px 16px;
    background: var(--pg-gray-lighter);
    border-radius: var(--pg-border-radius);
    font-size: 12px;
    color: var(--pg-gray);
    font-weight: 500;
}

.pg-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg-status-publish,
.pg-status-processing,
.pg-status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dacc;
}

.pg-status-draft,
.pg-status-pending,
.pg-status-on-hold {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffd93d;
}

.pg-status-cancelled,
.pg-status-refunded {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.pg-no-data {
    text-align: center;
    padding: 60px 40px;
    color: var(--pg-gray);
    font-size: 16px;
}

/* ============================================
   FORMULAIRES DE PRODUIT
   ============================================ */
.pg-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--pg-gray-lighter);
}

.pg-page-header h2 {
    margin: 0;
    color: var(--pg-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pg-product-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pg-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pg-form-actions {
    display: flex;
    gap: 15px;
    padding-top: 30px;
    border-top: 2px solid var(--pg-gray-lighter);
}

.pg-image-preview {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--pg-gray-lighter);
    border-radius: var(--pg-border-radius);
    display: inline-block;
}

.pg-image-preview img {
    max-width: 250px;
    height: auto;
    border-radius: var(--pg-border-radius);
    margin-bottom: 15px;
    box-shadow: var(--pg-box-shadow-card);
}

.pg-remove-image {
    margin-left: 0;
    margin-top: 10px;
}

/* ============================================
   ANALYSES
   ============================================ */
.pg-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.pg-analytics-card {
    background: var(--pg-white);
    padding: 35px;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow);
    border: 1px solid var(--pg-gray-lighter);
    transition: var(--pg-transition);
}

.pg-analytics-card:hover {
    box-shadow: var(--pg-box-shadow-hover);
    transform: translateY(-3px);
}

.pg-analytics-card h3 {
    margin: 0 0 25px 0;
    color: var(--pg-primary);
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pg-gray-lighter);
}

.pg-chart-placeholder {
    padding: 25px;
    background: var(--pg-gray-lighter);
    border-radius: var(--pg-border-radius);
}

.pg-simple-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.pg-chart-bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pg-bar-label {
    min-width: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-dark);
}

.pg-bar-container {
    flex: 1;
    height: 35px;
    background: var(--pg-gray-lighter);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pg-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pg-primary) 0%, var(--pg-accent) 100%);
    border-radius: 18px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 8px rgba(0, 56, 155, 0.3);
}

.pg-bar-value {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    color: var(--pg-primary);
    font-size: 15px;
}

.pg-top-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pg-top-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--pg-gray-lighter);
    border-radius: var(--pg-border-radius);
    border-left: 4px solid var(--pg-primary);
    transition: var(--pg-transition);
}

.pg-top-product-item:hover {
    background: var(--pg-gray-light);
    transform: translateX(5px);
    box-shadow: var(--pg-box-shadow-card);
}

.pg-product-name {
    font-weight: 600;
    color: var(--pg-dark);
    font-size: 15px;
}

.pg-product-sales {
    color: var(--pg-primary);
    font-weight: 700;
    font-size: 15px;
}

/* ============================================
   PROFIL
   ============================================ */
.pg-profile-form {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pg-dashboard-home h2 {
    color: var(--pg-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pg-gray-lighter);
}

.pg-recent-orders {
    margin-top: 40px;
}

.pg-recent-orders h3 {
    color: var(--pg-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pg-dashboard-header {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 30px 25px;
    }
    
    .pg-dashboard-header h1 {
        font-size: 24px;
    }
    
    .pg-dashboard-nav {
        flex-direction: column;
        padding: 15px;
    }
    
    .pg-nav-item {
        width: 100%;
        justify-content: center;
    }
    
    .pg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-stat-card {
        padding: 25px;
    }
    
    .pg-form-row {
        grid-template-columns: 1fr;
    }
    
    .pg-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .pg-dashboard-content {
        padding: 25px 20px;
    }
    
    .pg-products-table,
    .pg-orders-table {
        font-size: 12px;
    }
    
    .pg-products-table th,
    .pg-products-table td,
    .pg-orders-table th,
    .pg-orders-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .pg-auth-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .pg-dashboard-container {
        padding: 10px;
    }
    
    .pg-dashboard-content {
        padding: 20px 15px;
    }
    
    .pg-stat-icon {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }
    
    .pg-stat-content h3 {
        font-size: 28px;
    }
}

/* ============================================
   ELEMENTOS ESPECÍFICOS DO PLUGIN GARAGE
   ============================================ */

/* Filtres */
.pg-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pg-filter-btn {
    padding: 10px 20px;
    background: var(--pg-gray-lighter);
    color: var(--pg-gray);
    border: 2px solid var(--pg-gray-light);
    border-radius: var(--pg-border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--pg-transition);
}

.pg-filter-btn:hover {
    background: var(--pg-gray-light);
    border-color: var(--pg-primary);
    color: var(--pg-primary);
}

.pg-filter-btn.active {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
    color: var(--pg-white);
    border-color: var(--pg-primary);
    box-shadow: 0 4px 15px rgba(0, 56, 155, 0.3);
}

.pg-period-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

/* Switch de visibilité */
.pg-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 15px;
}

.pg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--pg-gray-light);
    transition: var(--pg-transition);
    border-radius: 34px;
}

.pg-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--pg-white);
    transition: var(--pg-transition);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pg-switch input:checked + .pg-slider {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
}

.pg-switch input:checked + .pg-slider:before {
    transform: translateX(26px);
}

.pg-switch-label {
    font-weight: 600;
    color: var(--pg-dark);
    font-size: 16px;
}

.pg-visibility-info {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--pg-border-radius);
}

.pg-info-text {
    color: var(--pg-success);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pg-warning-text {
    color: var(--pg-warning);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Détails d'installation */
.pg-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pg-details-card {
    background: var(--pg-gray-lighter);
    padding: 25px;
    border-radius: var(--pg-border-radius);
    box-shadow: var(--pg-box-shadow-card);
    border-left: 4px solid var(--pg-primary);
}

.pg-details-card h3 {
    margin: 0 0 15px 0;
    color: var(--pg-primary);
    font-size: 18px;
    font-weight: 700;
}

.pg-details-card p {
    margin: 10px 0;
    color: var(--pg-dark);
    font-size: 14px;
}

.pg-details-card strong {
    color: var(--pg-primary);
    font-weight: 600;
}

/* Installation form */
.pg-installation-form {
    background: var(--pg-white);
    padding: 30px;
    border-radius: var(--pg-border-radius);
    box-shadow: var(--pg-box-shadow-card);
}

/* Visibility page */
.pg-visibility-card {
    background: var(--pg-white);
    padding: 35px;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow);
    max-width: 700px;
}

.pg-visibility-card h3 {
    margin: 0 0 15px 0;
    color: var(--pg-primary);
    font-size: 22px;
    font-weight: 700;
}

.pg-visibility-card p {
    color: var(--pg-gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.pg-visibility-form {
    margin-top: 25px;
}

/* Financial stats */
.pg-financial-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pg-revenue-chart {
    background: var(--pg-white);
    padding: 35px;
    border-radius: var(--pg-border-radius-lg);
    box-shadow: var(--pg-box-shadow);
    margin-top: 30px;
}

.pg-revenue-chart h3 {
    margin: 0 0 25px 0;
    color: var(--pg-primary);
    font-size: 22px;
    font-weight: 700;
}

.pg-chart-container {
    padding: 25px;
    background: var(--pg-gray-lighter);
    border-radius: var(--pg-border-radius);
}

/* Recent installations table */
.pg-recent-installations {
    margin-top: 40px;
}

.pg-recent-installations h3 {
    color: var(--pg-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pg-recent-installations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--pg-white);
    border-radius: var(--pg-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--pg-box-shadow-card);
}

.pg-recent-installations-table thead {
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-light) 100%);
    color: var(--pg-white);
}

.pg-recent-installations-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pg-recent-installations-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--pg-gray-lighter);
    font-size: 14px;
}

.pg-recent-installations-table tbody tr:hover {
    background: var(--pg-gray-lighter);
    transition: var(--pg-transition);
}