/* ====================== RESET & BASE ====================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
    padding: 2rem;
}

/* Desktop Only Message */
.desktop-only {
    font-size: 5vw;
    text-align: center;
    color: #fff;
    background: #111;
    border: 4px solid #666;
    border-radius: 20px;
    padding: 2rem;
    display: none;
}

.trading-journal {
    display: none;
}

@media screen and (min-width: 768px) {
    .trading-journal {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Main Container */
.trading-journal {
    max-width: 1400px;
    margin: 0 auto;
}

/* ====================== HEADER ====================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(40, 40, 40, 0.85);
    border-radius: 16px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.title-span {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #eee;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.control-btn {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid #555;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
}

.control-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ====================== CARDS ====================== */
.card {
    background: #252525;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        display: flex;
        flex-direction: column;
    }
}

/* Card Specific Widths */
.balance-card,
.add-card {
    width: 60vw;
}

.profit-card,
.stats-card {
    width: 28.5vw;
}

.list-card {
    width: 100%;
}

/* Balance & Profit Card Content */
.balance-card h3,
.profit-card .profit-span {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #aaa;
}

.total-profit-display {
    font-size: 2.4rem;
    font-weight: 700;
    color: #22c55e;
    /* Green for profit */
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
    font-size: 1.3vw;
    font-weight: 300;
}
.input-pnl{
    padding: 0.6vw;
    border: 0.1vw solid black;
    border-radius: 1.2vw;
}
/* Add Form */
.add-input-grid {
    display: grid;
    grid-template-columns: 2fr auto;
    gap: 1rem;
}

.input-capital,
.duedate-js {
    padding: 0.8rem 1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #eee;
}

.save-pnl{
        padding: 0.6vw;
    border: 0.1vw solid black;
    border-radius: 1vw;
}
.delete{
          padding: 0.6vw;
    border: 0.1vw solid black;
    border-radius: 1vw;
}
.add-btn,
.save-capital {
    background: #333;
    color: #fff;
    border: none;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.save-capital{
    padding: 1vw;
}
.add-btn:hover,
.save-capital:hover {
    background: #555;
}

/* Trade / Sales List */
.todotask .users-class,
.js-project-list>div {
    display: flex;
    gap: 1.5vw;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #444;
    margin-bottom: 0.5rem;
    border-radius: 12px;
}

.todotask .users-class:hover {
    background: #2a2a2a;
}

/* Buttons in list */
.win-button {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.loss-button {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.delete-button {
    background: #444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Extra fixes */
.capital-display {
    font-size: 2vw;
    font-weight: 700;
    color: #22c55e;
}

.balance-container {
    display: flex;
    gap: 1.5vw;
    align-items: center;
    flex-wrap: wrap;
}

/* Dark mode support */
.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}