/* Investiss'imo - Style inspiré de Microsoft Copilot */

:root {
    --primary-color: #0078d4; /* Bleu Microsoft */
    --secondary-color: #2ecc71;
    --accent-color: #0078d4;
    --danger-color: #e74c3c;
    --dark-color: #10141f; /* Très foncé comme Copilot */
    --dark-secondary: #1c2333; /* Un peu plus clair pour les panels */
    --light-color: rgba(255, 255, 255, 0.85);
    --text-color: rgba(255, 255, 255, 0.9);
    --border-radius: 10px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 36, 50, 0.8);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    background-image: radial-gradient(circle at top right, #1a1f35, var(--dark-color));
    background-attachment: fixed;
    overflow-x: hidden;
}

.game-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: var(--light-color);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 1.8rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.2rem;
}

button {
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    button:hover {
        background-color: #106ebe;
        box-shadow: 0 0 12px rgba(0, 120, 212, 0.5);
        transform: translateY(-2px);
    }

    button:disabled {
        background-color: rgba(149, 165, 166, 0.5);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    button:focus {
        outline: 2px solid rgba(255, 255, 255, 0.3);
        outline-offset: 2px;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    gap: 8px;
}

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

    .btn-primary:hover {
        background-color: #106ebe;
        box-shadow: 0 0 12px rgba(0, 120, 212, 0.5);
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

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

    .btn-danger:hover {
        background-color: #c0392b;
        box-shadow: 0 0 12px rgba(231, 76, 60, 0.5);
        transform: translateY(-2px);
    }

/* Error Modal Styles */
.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.error-content {
    background-color: var(--dark-secondary);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border-left: 4px solid #e74c3c;
    animation: slideInTop 0.4s ease forwards;
}

    .error-content h2 {
        color: white;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .error-content button {
        background-color: var(--primary-color);
        color: white;
        margin-top: 20px;
        padding: 10px 20px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .error-content button:hover {
            background-color: #106ebe;
            transform: translateY(-2px);
        }

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--dark-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    header:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        transform: translateY(-3px);
    }

    header h1 {
        margin: 0;
        color: white;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        header h1 i {
            color: var(--primary-color);
        }

.game-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .control-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

#nextCycleBtn {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    width: auto;
    height: auto;
    padding: 10px 16px;
    position: relative;
    overflow: hidden;
}

    #nextCycleBtn:hover {
        background-color: #106ebe;
        transform: translateY(-2px);
    }

    #nextCycleBtn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
        transform: rotate(45deg);
        animation: shineEffect 3s infinite;
        z-index: 1;
    }

/* Dashboard Styles */
.dashboard {
    margin-bottom: 25px;
}

.info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .info-card h3 {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .info-card h3 i {
            color: var(--primary-color);
        }

    .info-card p {
        font-size: 1.3rem;
        font-weight: 600;
        color: white;
    }

    .info-card:nth-child(3) {
        animation: glow 4s infinite;
    }

.cycle-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cycle-duration {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

    .cycle-duration select {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        padding: 6px 10px;
        transition: all var(--transition-speed) ease;
    }

        .cycle-duration select:hover {
            border-color: var(--primary-color);
            box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
        }

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-top: 5px;
}

.text-danger {
    color: var(--danger-color) !important;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

    .progress::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
        animation: progressShine 2s linear infinite;
    }

/* Main Tabs Styles */
.main-tabs {
    display: flex;
    margin-bottom: 25px;
    background-color: var(--dark-secondary);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-tab-btn {
    padding: 12px 25px;
    margin-right: 15px;
    background-color: transparent;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    position: relative;
}

    .main-tab-btn i {
        margin-right: 8px;
    }

    .main-tab-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        transform: translateY(-2px);
    }

    .main-tab-btn.active {
        background-color: var(--primary-color);
        color: white;
    }

        .main-tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid var(--primary-color);
        }

.main-tab-content {
    display: none;
}

    .main-tab-content.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

/* Game Area Styles */
.game-area {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
    }
}

.property-section, .store-section, .finances-section, .statistics-section {
    background-color: var(--dark-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .property-section:hover, .store-section:hover, .finances-section:hover, .statistics-section:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        transform: translateY(-3px);
    }

.properties-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.property-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .property-card.damaged {
        border-color: var(--danger-color);
        border-width: 2px;
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
    }

    .property-card.upgrading {
        border-color: var(--accent-color);
        border-width: 2px;
        box-shadow: 0 0 15px rgba(0, 120, 212, 0.3);
    }

.property-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.property-value {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.property-info {
    margin-bottom: 15px;
}

.property-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.value-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.current-value {
    height: 100%;
    background-color: var(--primary-color);
    position: relative;
}

    .current-value::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
        animation: progressShine 2s linear infinite;
    }

.insurance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

    .insurance-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

.ali-badge {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.pno-badge {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.upgrade-badge {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Store Styles */
.tabs, .upgrade-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn, .upgrade-tab-btn {
    background-color: transparent;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

    .tab-btn i, .upgrade-tab-btn i {
        margin-right: 8px;
    }

    .tab-btn:hover, .upgrade-tab-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        transform: translateY(-2px);
    }

    .tab-btn.active, .upgrade-tab-btn.active {
        background-color: var(--primary-color);
        color: white;
        box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
    }

.tab-content, .upgrade-tab-content {
    display: none;
}

    .tab-content.active, .upgrade-tab-content.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

.store-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.store-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

    .store-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .store-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

.price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.rent {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .buy-btn:hover {
        background-color: #27ae60;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    }

.insurance-info {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .insurance-info:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .insurance-info h3 {
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .insurance-info h3 i {
            color: var(--primary-color);
        }

    .insurance-info ul {
        list-style-type: none;
        margin-top: 15px;
    }

    .insurance-info li {
        margin-bottom: 8px;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.8);
        position: relative;
        padding-left: 20px;
    }

        .insurance-info li::before {
            content: '\2022';
            color: var(--primary-color);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

/* Finances Section Styles */
.finance-info-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .finance-info-panel {
        grid-template-columns: 1fr;
    }
}

.finance-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .finance-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .finance-card h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

        .finance-card h3 i {
            color: var(--primary-color);
        }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.9);
    }

    .form-group input[type="range"] {
        width: 100%;
        margin-bottom: 8px;
        accent-color: var(--primary-color);
        height: 8px;
    }

    .form-group input[type="text"] {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px 15px;
        border-radius: 6px;
        color: white;
        width: 100%;
        transition: all var(--transition-speed) ease;
    }

        .form-group input[type="text"]:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
        }

.patrimoine-chart-container {
    width: 100%;
    height: 200px;
    margin-top: 20px;
}

.tax-table, .finance-details-table, .highscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

    .tax-table th, .tax-table td,
    .finance-details-table th, .finance-details-table td,
    .highscore-table th, .highscore-table td {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }

    .tax-table th, .finance-details-table th, .highscore-table th {
        background-color: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
        font-weight: 500;
    }

    .tax-table tr:hover, .finance-details-table tr:hover, .highscore-table tr:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .tax-table td i, .finance-details-table td i {
        color: var(--primary-color);
        margin-right: 8px;
    }

/* Statistics Section Styles */
.statistics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .stat-card h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

        .stat-card h3 i {
            color: var(--primary-color);
        }

.chart-container {
    width: 100%;
    height: 220px;
    margin-top: 15px;
    position: relative;
}

.empty-chart {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.statistics-detail h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .statistics-detail h3 i {
        color: var(--primary-color);
    }

/* Property Detail Modal Styles */
.modal-large {
    max-width: 900px;
    width: 90%;
}

.property-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .property-detail-content {
        grid-template-columns: 1fr;
    }
}

.property-info-section, .property-actions-section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
}

.property-history {
    max-height: 250px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

    .property-history::-webkit-scrollbar {
        width: 6px;
    }

    .property-history::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .property-history::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 3px;
    }

.property-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

    .property-action-buttons button {
        flex: 1;
        font-size: 1rem;
    }

.upgrade-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.upgrade-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .upgrade-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .upgrade-item h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        color: white;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .upgrade-item h4 i {
            color: var(--primary-color);
        }

    .upgrade-item p {
        font-size: 0.9rem;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.8);
    }

.upgrade-btn {
    width: 100%;
    margin-top: 15px;
    background-color: var(--primary-color);
}

    .upgrade-btn:hover {
        background-color: #106ebe;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
    }

    .upgrade-btn.completed {
        background-color: rgba(127, 140, 141, 0.5);
    }

    .upgrade-btn.in-progress {
        background-color: var(--accent-color);
        animation: pulse 2s infinite;
    }

/* Event Log Styles */
.event-log {
    background-color: var(--dark-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .event-log:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        transform: translateY(-3px);
    }

    .event-log h2 {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .event-log h2 i {
            color: var(--primary-color);
        }

.events-list {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

    .events-list::-webkit-scrollbar {
        width: 6px;
    }

    .events-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .events-list::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 3px;
    }

.event {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color var(--transition-speed) ease;
}

    .event:last-child {
        border-bottom: none;
    }

    .event:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

.event-date {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 550px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInTop 0.4s ease forwards;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
}

    .modal-content::-webkit-scrollbar {
        width: 6px;
    }

    .modal-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 3px;
    }

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

    .close:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

#eventActions {
    margin: 25px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    #eventActions button {
        flex: 1;
        min-width: 120px;
    }

#gameStats {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

    #gameStats p {
        margin-bottom: 10px;
        font-size: 1rem;
    }

/* Highscore Styles */
#highscoreSection {
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    #highscoreSection h3, #highscoreList h3 {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        #highscoreSection h3 i, #highscoreList h3 i {
            color: #f1c40f;
        }

#restartGameBtn, #saveScoreBtn, #shareScoreBtn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#shareScoreBtn {
    margin-top: 10px;
}

/* Animation pour le modal de fin de jeu */
#gameOverModal .modal-content {
    border-left: 5px solid var(--danger-color);
}

#gameOverReason {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--danger-color);
    margin-bottom: 25px;
    text-align: center;
}

/* Styles spécifiques à Copilot */
.property-history-event {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-speed) ease;
}

    .property-history-event:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 30px;
}

    select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
    }

option {
    background-color: var(--dark-secondary);
    color: white;
}

/* Effet de focus sur les cartes lors de la navigation avec tab */
.property-card:focus, .store-item:focus, .info-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Special event styles */
.catastrophe-event {
    color: var(--danger-color);
    font-weight: bold;
}

.positive-event {
    color: #2ecc71;
    font-weight: bold;
}

/* Small text */
.small {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 120, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(0, 120, 212, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 120, 212, 0.8);
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 120, 212, 0.5);
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes shineEffect {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    20% {
        transform: rotate(45deg) translateX(100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .info-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .store-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .info-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-controls {
        flex-wrap: wrap;
    }

    .property-history {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .info-panel {
        grid-template-columns: 1fr;
    }

    .game-controls {
        width: 100%;
        justify-content: center;
    }

    .main-tabs {
        flex-wrap: wrap;
    }

    .main-tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin-bottom: 8px;
        width: 100%;
    }

    .tab-btn, .upgrade-tab-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .property-detail-content {
        grid-template-columns: 1fr;
    }

    .property-action-buttons {
        flex-direction: column;
    }

    .upgrade-items {
        grid-template-columns: 1fr;
    }
}
