/* General Styles */

.portfolio-window-content > .bp-window-content {
    background-color: #121212 !important;
}

.portfolio-container {
    background-color: #121212;
    color: #fff;
    padding: 20px;
    margin: auto;
    background: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
   
}

.portfolio-explainer > h2 {
    color: #00d1b2;
    text-align: left;
}

.portfolio-copy > h3 {
    font-size: 1.5rem;
    color: #00d1b2;
    margin-bottom: 10px;
}

.portfolio-container > h4 {
    font-size: 1rem;
    color: #00d1b2;
    margin-bottom: 5px;
}

.portfolio-container label {
    color: #fff;
    background-color: #222;
}

.portfolio-message {
    text-align: center;
    justify-items: center;
    align-items: center;
}
.portfolio-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #00d1b2;
}

/* Portfolio Summary */
.portfolio-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.summary-item {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    width: 45%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.summary-item > h3 {
    color: #00d1b2 !important;
    margin-bottom: 10px;
}

.summary-item p {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Portfolio Table */
.portfolio-table {
    width: 100%;
    overflow-x: auto;
}

.portfolio-table table {
    width: 100%;
    border-collapse: collapse;
    background: #222;
}

.loggedOutMessage > h3{
        color: #00d1b2;

}
.portfolio-table th, .portfolio-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #ddd;
}

.portfolio-table th {
    background: #333;
}

/* Portfolio Actions */
.portfolio-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 30px;
}

/* Alternating row colors */
.portfolio-table tr:nth-child(even), .all-coins tr:nth-child(even) {
    background: #2a2a2a;
}

.portfolio-table tr:nth-child(odd), .all-coins tr:nth-child(odd) {
    background: #1f1f1f;
}

/* Hover effects */
.portfolio-table tr:hover, .all-coins tr:hover {
    background: #444;
    color: #fff;
    cursor: pointer;
}

/* Highlighting active rows */
.portfolio-table tr.active, .all-coins tr.active {
    background: #555;
    color: #ffcc00;
}

/* Coin Send Form */
.coin-send-form {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    color: #ddd;
}

.coin-send-form h1 {
    color: #ffcc00;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coin-send-form label {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}

.coin-send-form input, 
.coin-send-form select, 
.coin-send-form button {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.coin-send-form input, 
.coin-send-form select {
    background: #333;
    color: #fff;
    outline: none;
}

.coin-send-form input:focus, 
.coin-send-form select:focus {
    background: #444;
    border: 1px solid #ffcc00;
    transform: scale(1.02);
}

.coin-send-form button {
    background: #00d1b2;
    color: #121212;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.coin-send-form button:hover {
    background: #008c7e;
    transform: translateY(-2px);
}

.coin-send-form .coin-error {
    color: #ff4444;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}


/* Coin Balance Display */
.coin-balance {
    margin-top: 10px;
    padding: 8px;
    background: #333;
    color: #ffcc00;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.coin-balance:hover {
    background: #444 !important ;
}

.coin-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00d1b2 !important;
}

.portfolio-explainer {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 20px;
    gap: 20px;
    max-width: 600px;
}

.portfolio-explainer > p {
    color: #ddd;
    text-align: left;
}

.portfolio-explainer > h4 {
    color: #00d1b2;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.orange {
    color: #ffcc00;
}

/* Responsive Design */
@media (max-width: 767px) and (pointer: coarse) and (hover: none) {
    .coin-send-form {
        padding: 15px;
        max-width: 100%;
    }

    .coin-send-form input, 
    .coin-send-form select, 
    .coin-send-form button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .coin-send-form h1 {
        font-size: 1.5rem;
    }

    .portfolio-actions {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .portfolio-actions  button {
        width: 100%;
        margin-bottom: 10px;
    }

}

#user-portfolio > p {
    color: #ddd !important;
}
#portfolio-help {
    text-align: center;
}

.total-value {
    color: #fff !important;
}

.profit-loss {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-table th, .all-coins th, .portfolio-table td, .all-coins td {
        padding: 10px;
        font-size: 14px;
    }

    .portfolio-table h2, .all-coins h2 {
        font-size: 18px;
    }
}

/* Smooth transitions for data updates */
.portfolio-table td.updated, .all-coins td.updated {
    animation: highlightUpdate 1.5s ease-in-out;
}

@keyframes highlightUpdate {
    0% { background: #006400; color: #fff; }
    50% { background: #222; color: #ddd; }
    100% { background: transparent; color: inherit; }
}

/* Discord Integration */
@media (max-height: 480px) {
    /* portfolio-actions should be top to bottom vertical  on the right side */
    .portfolio-actions {
        position: absolute;
        right: 20px;
        top: 50px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .portfolio-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
}