body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: white;
    color: #222;
}
.dashboard {
    margin-top: 28px;
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 220px;
    background: #fff;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.sidebar h1 {
    font-size: 1.6em;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
}
.sidebar input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 1em;
}
.main-content {
    flex: 1;
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
   
}
.portfolio-total {
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 8px;
}
.portfolio-change {
    font-size: 0.9em;
    margin-left: 8px;
}
.portfolio-change.up { color: #1db954; }
.portfolio-change.down { color: #e74c3c; }
.timeframe button {
    background: none;
    border: none;
    color: #888;
    font-size: 1em;
    margin-right: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.timeframe button.active, .timeframe button:hover {
    background: #eaeaea;
    color: #222;
}
.chart-section {
    background: #fff;
   
    padding: 32px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-invest {
    display: flex;
    gap: 32px;
    width: 100%;
    margin: 40px 0 0 0;
}
.portfolio-block {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.investments {
    margin:30px;
    max-width: 400px;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: none;
}
.investments-block {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.investments h3 {
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 700;
}
.investments-block ul {
    
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    padding: 10px;
    margin: 0;
}
.investments li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 10px;
    background: transparent;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    cursor: pointer;
}
.investments li:last-child {
    border-bottom: none;
}
.investments li:hover, .investments li:active {
    background: #eff4ff;
    box-shadow: 0 2px 8px 0 rgba(30,30,60,0.08);
    transform: translateY(-2px) scale(1.01);
}
.logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f3f3;
    object-fit: contain;
}
.name {
    font-weight: 600;
    font-size: 1em;
}
.qty {
    color: #888;
    font-size: 0.95em;
    margin-left: 4px;
}
.value {
    margin-left: auto;
    font-weight: 600;
}
.change {
    width: 70px;
    text-align: right;
    font-weight: 600;
}
.change.up { color: #1db954; }
.change.down { color: #e74c3c; }
.not-invested {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1em;
}
.actions {
    display: flex;
    gap: 12px;
}
.actions button {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.deposit { background: #1db954; color: #fff; }
.withdraw { background: #e74c3c; color: #fff; }
@media (max-width: 1100px) {
    .dashboard { flex-direction: column-reverse; }
    .sidebar, .investments { width: 100%; border: none; }
    .main-content { padding: 24px 8px; }
    .portfolio-invest { flex-direction: column; gap: 0; }
    .investments { width: 100%; margin-top: 32px; }
}
@media (max-width: 700px) {
    .dashboard { flex-direction: column-reverse; }
    .sidebar, .investments { width: 100%; }
    .main-content { padding: 12px 4px; }
    .chart-section { padding: 12px; }
}
.main-header {
   
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(30,30,60,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 24px;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}
.main-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #f3f3f3;
}
.main-title {
    font-size: 1.35em;
    font-weight: 800;
    letter-spacing: 1px;
}
.main-search {
   width: 40%;
    margin: 0 32px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 1.08em;
    background: #f7f8fa;
    outline: none;
    transition: border 0.2s;
}
.main-search:focus {
    border: 1.5px solid #1a73e8;
    background: #fff;
}
.main-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}
.menu-link {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 1.08em;
    padding: 8px 16px;
    border-radius: 7px;
    transition: background 0.18s, color 0.18s;
}
.menu-link.active, .menu-link:hover {
    background: #eff4ff;
    color: #1a73e8;
}
@media (max-width: 900px) {
    .main-header { flex-direction: column; height: auto; padding: 12px 8px; gap: 10px; }
    .main-search { margin: 10px 0; width: 100%; }
    .main-menu { gap: 8px; }
}
.orders-block {
    flex: 1;
    margin: 40px 0 0 0;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.orders-block h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 18px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.order-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(30,30,60,0.08);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 5px solid #eaeaea;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.order-item:hover {
    box-shadow: 0 4px 24px 0 rgba(30,30,60,0.13);
    border-left: 5px solid #1a73e8;
}
.order-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 6px;
}
.order-type {
    font-weight: 700;
    font-size: 1.08em;
    margin-right: 8px;
    padding: 3px 12px;
    border-radius: 6px;
    color: #fff;
    letter-spacing: 0.5px;
}
.order-type.buy { background: #1db954; }
.order-type.sell { background: #e74c3c; }
.order-asset {
    font-weight: 600;
    font-size: 1.08em;
    color: #222;
}
.order-status {
    margin-left: auto;
    font-weight: 700;
    font-size: 1em;
    padding: 4px 14px;
    border-radius: 6px;
    min-width: 90px;
    text-align: center;
}
.order-status.success { background: #e8f5e9; color: #1db954; }
.order-status.pending { background: #fffbe6; color: #e67e22; }
.order-status.failed { background: #fdecea; color: #e74c3c; }
.order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    color: #555;
    font-size: 1em;
    padding-left: 8px;
}
.order-details div {
    min-width: 140px;
    margin-bottom: 2px;
}
.profile-block {
    flex: 1;
    margin: 40px 0 0 0;
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.profile-block h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 18px;
}
.profile-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.profile-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(30,30,60,0.08);
    padding: 28px 32px;
    flex: 1 1 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.profile-section h3 {
    margin-top: 0;
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 12px;
}
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    font-size: 1em;
    color: #444;
}
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-form label {
    font-weight: 600;
    margin-top: 8px;
}
.profile-form input[type="password"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1em;
    background: #f7f8fa;
    margin-bottom: 4px;
}
.profile-form button {
    margin-top: 10px;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    transition: background 0.18s;
}
.profile-form button:hover {
    background: #155ab6;
}
.profile-docs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.profile-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 1em;
}
.profile-doc-item button {
    background: #e0e7ef;
    color: #1a73e8;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.profile-doc-item button:hover {
    background: #1a73e8;
    color: #fff;
}
@media (max-width: 1100px) {
    .profile-sections { flex-direction: column; gap: 24px; }
    .profile-section { min-width: 0; }
}
.profile-dashboard {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 32px 0 32px;
}
.profile-activity-block {
    flex: 2;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(30,30,60,0.08);
    padding: 32px 38px 32px 38px;
    min-width: 340px;
}
.profile-activity-title {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 24px;
}
.profile-activity-year {
    color: #bbb;
    font-weight: 500;
    font-size: 0.95em;
}
.profile-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.profile-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 18px 0;
    border-bottom: 1px solid #f0f0f0;
}
.profile-activity-item:last-child {
    border-bottom: none;
}
.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.activity-title {
    font-weight: 600;
    font-size: 1.08em;
    color: #222;
}
.activity-desc {
    color: #888;
    font-size: 0.98em;
    margin-top: 2px;
}
.activity-profit {
    font-weight: 600;
    font-size: 0.98em;
}
.activity-profit.positive { color: #1db954; }
.activity-profit.negative { color: #e74c3c; }
.activity-amount {
    min-width: 90px;
    text-align: right;
    font-weight: 700;
    font-size: 1.08em;
    align-self: center;
}
.activity-amount.positive { color: #1db954; }
.activity-amount.negative { color: #e74c3c; }
.profile-cash-block {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(30,30,60,0.08);
    padding: 32px 28px;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
   
}
.profile-cash-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 8px;
}
.profile-cash-amount {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 12px;
}
.profile-cash-btn {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    background: #e0e7ef;
    color: #1a73e8;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.profile-cash-btn:hover {
    background: #1a73e8;
    color: #fff;
}
@media (max-width: 1100px) {
    .profile-dashboard { flex-direction: column; gap: 24px; padding: 24px 8px 0 8px; }
    .profile-cash-block { max-width: 100%; min-width: 0; }
}
.profile-activity-block.restyled {
    background: linear-gradient(120deg, #f7f8fa 60%, #e0e7ef 100%);
    border: 1.5px solid #e0e7ef;
    box-shadow: 0 4px 24px 0 rgba(30,30,60,0.07);
    padding: 36px 44px 36px 44px;
    border-radius: 18px;
}
.profile-activity-title {
    font-size: 1.35em;
    font-weight: 800;
    margin-bottom: 28px;
    color: #1a73e8;
    letter-spacing: 0.5px;
}
.profile-info-block {
    flex: 1.2;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px 0 rgba(30,30,60,0.08);
    padding: 32px 38px;
    min-width: 340px;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: flex-start;
}
.profile-info-title {
    font-size: 1.18em;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
}
.profile-info-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
}
.profile-info-grid label {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 4px;
    color: #1a73e8;
    display: block;
}
.profile-info-grid input[type="text"],
.profile-info-grid input[type="email"],
.profile-info-grid input[type="date"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1em;
    background: #f7f8fa;
    margin-top: 2px;
    transition: border 0.18s;
}
.profile-info-grid input:focus {
    border: 1.5px solid #1a73e8;
    background: #fff;
}
.profile-info-btn {
    margin-top: 10px;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
    transition: background 0.18s;
}
.profile-info-btn:hover {
    background: #155ab6;
}
@media (max-width: 1100px) {
    .profile-dashboard { flex-direction: column; gap: 24px; padding: 24px 8px 0 8px; }
    .profile-cash-block, .profile-info-block, .profile-activity-block { max-width: 100%; min-width: 0; }
    .profile-info-grid { grid-template-columns: 1fr; }
}

/* Styles pour la page admin */
.admin-content {
    padding: 20px;
    width: 100%;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0 0;
    color: #333;
}

.users-table-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-table-container h2 {
    margin: 0 0 20px;
    color: #333;
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
}

#usersTable th,
#usersTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#usersTable th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
}

.action-btn.edit {
    background-color: #007bff;
    color: white;
}

.action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Styles DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

/* Styles pour la section Actualités */
.news-section {
    margin-top: 30px;
    padding: 20px;
}

.news-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
    color: white;
}

.news-content p {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.news-date {
    display: block;
    font-size: 0.8em;
    color: #999;
}
.form-group, .form-group input {
    box-sizing: border-box;
}
/* Responsive design pour la grille d'actualités */
@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    .profile-activity-block {
        padding: 15px;
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .profile-activity-block {
        padding: 15px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-dashboard {
        align-items: normal;
        flex-direction: column-reverse;
    }
}

@media (max-width: 600px) {
    .profile-activity-block {
        padding: 15px;
    }
    .profile-dashboard {
        align-items: normal;
        flex-direction: column-reverse;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .logo-block, .main-search, .sidebar, .news-section, .timeframe {
        display: none;
    }
    .portfolio-invest {
        margin-top: 0px;
    }
    .investments {
        width: auto;
        max-width: unset;
    }
}

@media screen and (max-width: 600px) {
    .chart-section {
        height: 100%;
        min-height: 300px;
    }

    .chart-section canvas {
        height: 100% !important;
        width: 100% !important;
    }

    .portfolio-block {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .portfolio-block header {
        flex-shrink: 0;
    }

    .news-section {
        flex-shrink: 0;
    }
}

.welcome-message {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    padding: 15px;
    text-align: center;
    margin: 0;
    font-size: 1.1em;
    color: white;
    box-shadow: 0 4px 6px rgba(30, 136, 229, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1.5s ease-in-out;
}

.welcome-message.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.welcome-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease-in-out;
} 