.pnl-calendar-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 30px auto;
}

h1 {
    font-size: 2rem !important;
    color: black !important;
}

.month-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.month-nav-btn {
    background-color: #4a5af9;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.month-nav-btn:hover {
    background-color: #3949e0;
}

.calendar-title {
    font-size: 24px;
    color: #424242;
    margin: 0;
    font-weight: 600;
}

.total-pnl {
    font-size: 18px;
    text-align: right;
    font-weight: 500;
    color: #424242;
}

.positive-amount {
    color: #28a745;
}

.negative-amount {
    color: #dc3545;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.weekday-header {
    text-align: center;
    font-weight: 600;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.date-cell {
    min-height: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    background-color: white;
    position: relative;
}

.inactive-month {
    background-color: #f5f5f5;
    color: #aaa;
}

.day-number {
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.positive-day {
    background-color: #28a745;
    color: white;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.negative-day {
    background-color: #dc3545;
    color: white;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.pnl-value {
    font-weight: bold;
    margin-top: 10px;
}

.positive-pnl {
    color: #28a745;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(40, 167, 69, 0.1);
    display: inline-block;
}

.negative-pnl {
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(220, 53, 69, 0.1);
    display: inline-block;
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 5px;
    }

    .date-cell {
        min-height: 80px;
        padding: 5px;
    }

    .calendar-title {
        font-size: 18px;
    }
}


/* General App Styling */
.App {
    padding: 20px;
    background-color: #f4f7fa;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

/* Header */
.App h1 {
    text-align: center;
    margin-bottom: 10px;
}

.App p {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
}

/* Add Account Section */
.add-account {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.add-account h2 {
    color: #34495e;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.add-account .form-control {
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
}

.add-account .btn {
    background-color: #3498db;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-account .btn:hover {
    background-color: #2980b9;
}

/* Account Section */
.account-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.account-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Controls Section */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.controls .btn {
    flex: 1;
    padding: 10px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
}

.controls .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.controls .btn-primary {
    background-color: #2ecc71;
    border: none;
}

.controls .btn-primary:hover:not(:disabled) {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.controls .btn-danger {
    background-color: #e74c3c;
    border: none;
}

.controls .btn-danger:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.controls .btn-warning {
    background-color: #f1c40f;
    border: none;
    color: #fff;
}

.controls .btn-warning:hover:not(:disabled) {
    background-color: #d4ac0d;
    transform: translateY(-2px);
}

/* Status Section */
.status {
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 20px;
}

.status h2 {
    color: #34495e;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.status p {
    margin: 5px 0;
    color: #7f8c8d;
}

.status h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Parameters Section */
.parameters {
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.parameters h2 {
    color: #34495e;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.parameters .form-group {
    margin-bottom: 15px;
}

.parameters label {
    color: #2c3e50;
    font-weight: bold;
    margin-right: 10px;
}

.parameters .form-control {
    width: 100px;
    display: inline-block;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
}

.parameters .btn {
    background-color: #3498db;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.parameters .btn:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }

    .parameters .form-control {
        width: 80px;
    }

    .add-account .form-control {
        width: 100%;
    }
}

/*  */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    overflow: auto;
}

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

.pnl-calendar-container {
    padding: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-cell {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
}

.inactive-month {
    background-color: #f5f5f5;
    color: #999;
}

.day-number {
    font-weight: bold;
}

.pnl-value {
    font-size: 0.9em;
}

.positive-pnl {
    color: green;
}

.negative-pnl {
    color: red;
}

.pnl-withdrawal-container {
    margin-bottom: 1rem;
}

.withdrawals {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.withdrawal-list {
    max-height: 100px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.withdrawal-item {
    padding: 0.2rem 0;
    border-bottom: 1px solid #eee;
}

.withdrawal-item:last-child {
    border-bottom: none;
}

.withdrawal-buttons {
    text-align: right;
    margin-top: 10px;
}

.pnl-withdrawal-container {
    margin-bottom: 1rem;
}

.total-withdrawn {
    font-size: 1rem;
    font-weight: bold;
}

.withdrawal-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.withdrawal-list table {
    width: 100%;
    border-collapse: collapse;
}

.withdrawal-list th,
.withdrawal-list td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.withdrawal-list th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.green-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: rgb(2, 175, 2);
    border-radius: 50%;
    margin: 0 auto;
}


.width {
    width: 100%;
}

.trade_dashboard {
    max-width: 1200px !important;
}

.time {
    font-size: 12px;
    margin: 0;
}

.trade-dashboard {
    margin-left: 10px !important;
}

@media screen and (max-width: 992px) {
    .col-12 {
        padding: 0 0px 0 10px !important;
    }

    .calendar-grid {
        overflow-x: scroll;
    }
}

@media screen and (max-width: 499px) {
    .d-flex.justify-content-end.mb-4 {
        flex-direction: column;
    }

    .pnl-calendar-container {
        padding: 0px;
    }

    .modal-body {
        padding: 10px !important;
    }

    .flex_display {
        flex-direction: column;
    }
}