/* RESET */
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* BODY */
body{
    background:#0f172a;
    color:#e5e7eb;
}

/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:25px;
}

/* HEADER */
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.header h1{
    font-size:24px;
    font-weight:600;
}

/* BUTTON */
.add-btn{
    background:#22c55e;
    color:#fff;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.add-btn:hover{
    background:#16a34a;
}

/* STATS */
.stats{
    display:flex;
    gap:20px;
    margin-bottom:25px;
}

.stat-card{
    flex:1;
    background:#1e293b;
    padding:20px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.4);
    text-align:center;
}

.stat-card h3{
    font-size:13px;
    color:#9ca3af;
    margin-bottom:8px;
}

.stat-card p{
    font-size:26px;
    font-weight:700;
}

.stat-card small{
    display:block;
    margin-top:5px;
    font-size:12px;
    color:#9ca3af;
}


/* TABLE CARD */
.card{
    background:#1e293b;
    border-radius:12px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

/* TABLE */
table{
    width:100%;
    border-collapse:collapse;
}

th{
    text-align:left;
    padding:14px;
    font-size:13px;
    color:#9ca3af;
    border-bottom:1px solid #334155;
}

td{
    padding:14px;
    border-bottom:1px solid #334155;
    font-size:14px;
}

/* HOVER */
tr:hover{
    background:#1a2336;
    transition:0.2s;
}

/* SYMBOL */
.symbol{
    font-weight:600;
    font-size:15px;
}

/* PROFIT / LOSS */
.green{
    color:#22c55e;
    font-weight:600;
}

.red{
    color:#ef4444;
    font-weight:600;
}

/* DELETE BUTTON */
.delete-btn{
    background:#ef4444;
    color:#fff;
    padding:6px 10px;
    border-radius:6px;
    text-decoration:none;
    font-size:12px;
    transition:0.2s;
}

.delete-btn:hover{
    background:#dc2626;
}

/* RESPONSIVE */
@media (max-width:768px){

    .stats{
        flex-direction:column;
    }

    table{
        font-size:12px;
    }

    th, td{
        padding:10px;
    }
}


/* SUBTITLE */
.subtitle{
    color:#9ca3af;
    margin-bottom:20px;
}

/* GRID FORM */
.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* FORM */
label{
    font-size:13px;
    color:#9ca3af;
    display:block;
    margin-bottom:6px;
}

input, select, textarea{
    width:100%;
    padding:10px;
    border-radius:6px;
    border:1px solid #334155;
    background:#0f172a;
    color:#e5e7eb;
}

textarea{
    min-height:100px;
    resize:vertical;
}

small{
    font-size:11px;
    color:#6b7280;
}

/* MOBILE */
@media(max-width:768px){
    .grid{
        grid-template-columns:1fr;
    }
}


/* ACTION DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dots {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
}

.dots:hover {
    color: #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #1e1e2f;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
}

.dropdown-content a {

    padding: 10px;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #2c2c3a;
}

.dropdown-content a {
    display: flex;
    gap: 8px;
    align-items: center;
}