/* Estilos específicos para a página de compra de ativos */

.main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Navegação - Estilos específicos para páginas internas */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: #ffffff;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

/* Dashboard Overview */
.dashboard-overview {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #00ff88;
}

.stat-change.negative {
    color: #ff4444;
}

.stat-change.neutral {
    color: #888888;
}

/* Trading Section */
.trading-section {
    padding: 3rem 0;
    background: #0a0a0a;
}

.trading-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Market Panel */
.market-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.market-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.market-list {
    max-height: 400px;
    overflow-y: auto;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.market-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.market-item.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.market-info {
    display: flex;
    flex-direction: column;
}

.market-symbol {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.market-name {
    font-size: 0.8rem;
    color: #888888;
}

.market-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.change {
    font-size: 0.8rem;
    font-weight: 500;
}

.change.positive {
    color: #00ff88;
}

.change.negative {
    color: #ff4444;
}

/* Trading Panel */
.trading-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.trading-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #FFD700;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.form-input::placeholder {
    color: #888888;
}

.form-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.order-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #FFD700;
}

.buy-button {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000000;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Chart Panel */
.chart-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.chart-container {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#assetChart {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.chart-placeholder {
    text-align: center;
    color: #888888;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #FFD700;
}

.portfolio-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    font-weight: 600;
    color: #FFD700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.table-row:hover {
    background: rgba(255, 215, 0, 0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.asset-info {
    display: flex;
    flex-direction: column;
}

.asset-symbol {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.asset-name {
    font-size: 0.8rem;
    color: #888888;
}

.logout-btn {
    color: #ff4444 !important;
}

.logout-btn:hover {
    color: #ff6666 !important;
}

/* Responsividade */
@media (max-width: 1200px) {
    .trading-layout {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .chart-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .trading-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-cell {
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .table-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #FFD700;
    }

    .market-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .market-price {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main {
        padding-top: 70px;
    }

    .dashboard-overview,
    .trading-section,
    .portfolio-section {
        padding: 1.5rem 0;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .market-panel,
    .trading-panel,
    .chart-panel {
        padding: 1rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.market-panel,
.trading-panel,
.chart-panel {
    animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }



/* Responsividade para páginas internas */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 90%;
        text-align: center;
        border-radius: 8px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #FFD700;
        margin: 3px 0;
        transition: 0.3s;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .market-section {
        padding: 1rem;
    }

    .trading-section {
        padding: 1rem;
    }

    .trading-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .main {
        padding-top: 70px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .market-item {
        padding: 0.8rem;
    }

    .trading-form {
        padding: 1rem;
    }
}

