/* Crypto Investora Dashboard Styles */
:root {
    --cid-bg-dark: #0d0a1f;
    --cid-bg-card: rgba(25, 25, 45, 0.4);
    --cid-border-color: rgba(138, 43, 226, 0.3);
    --cid-primary-accent: #8A2BE2; /* BlueViolet */
    --cid-text-light: #f0f0f0;
    --cid-text-medium: #a0a0c0;
    --cid-profit-color: #00ff7f; /* SpringGreen */
    --cid-loss-color: #ff4500; /* OrangeRed */
}

.cid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    color: var(--cid-text-light);
    font-family: sans-serif;
}

.cid-header {
    text-align: center;
    margin-bottom: 40px;
}

.cid-header h2 {
    font-size: 2.5rem;
    color: var(--cid-text-light);
    margin-bottom: 10px;
}

.cid-header p {
    font-size: 1.1rem;
    color: var(--cid-text-medium);
}

/* Glassmorphism Card Effect */
.cid-card {
    background: var(--cid-bg-card);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--cid-border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* Main Navigation */
.cid-main-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--cid-border-color);
}

.cid-main-nav-list {
    display: flex;
    gap: 10px;
}

.cid-main-nav-list a {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--cid-text-medium);
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.cid-main-nav-list a:hover {
    color: var(--cid-text-light);
}

.cid-main-nav-list a.active {
    color: var(--cid-text-light);
    font-weight: bold;
}

.cid-main-nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--cid-primary-accent);
    border-radius: 3px;
}

/* Main Tab Content */
.cid-tab-content {
    display: none;
}

.cid-tab-content.active {
    display: block;
}

/* Summary Tab */
.cid-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card h4 {
    margin: 0 0 10px 0;
    color: var(--cid-text-medium);
    font-weight: normal;
}

.summary-card .amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
}

.summary-card .amount.profit {
    color: var(--cid-profit-color);
}

.summary-card .amount.loss {
    color: var(--cid-loss-color);
}

.cid-summary-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card h3, .crypto-prices-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Crypto Prices Table */
.crypto-prices-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
}

.crypto-prices-table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-prices-table th, .crypto-prices-table td {
    padding: 12px 15px;
    text-align: left;
}

.crypto-prices-table thead {
    color: var(--cid-text-medium);
}

.crypto-prices-table tbody tr {
    border-top: 1px solid var(--cid-border-color);
}

.crypto-prices-table .profit {
    color: var(--cid-profit-color);
}

.crypto-prices-table .loss {
    color: var(--cid-loss-color);
}

/* Transactions Tab */
.cid-table-wrapper {
    overflow-x: auto;
}

.cid-table {
    width: 100%;
    border-collapse: collapse;
}

.cid-table th, .cid-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--cid-border-color);
}

.cid-table th {
    color: var(--cid-text-medium);
}

.cid-table .status-completed {
    color: var(--cid-profit-color);
}
.cid-table .status-processing {
    color: #ffc107;
}
.cid-table .status-failed, .cid-table .status-cancelled {
    color: var(--cid-loss-color);
}

/* Settings Tab */
.cid-settings-tab-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cid-settings-tab-link {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--cid-text-medium);
    transition: background-color 0.3s, color 0.3s;
}

.cid-settings-tab-link:hover {
    background-color: var(--cid-bg-card);
    color: var(--cid-text-light);
}

.cid-settings-tab-link.active {
    background-color: var(--cid-primary-accent);
    color: white;
    font-weight: bold;
}

.cid-settings-tab-content {
    display: none;
}

.cid-settings-tab-content.active {
    display: block;
}

.cid-form .cid-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cid-form .cid-full-width {
    grid-column: 1 / -1;
}

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

.cid-form-group label {
    margin-bottom: 8px;
    color: var(--cid-text-medium);
}

.cid-form-group input, .cid-form-group select {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cid-border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--cid-text-light);
    font-size: 1rem;
}

.cid-form-group input:focus, .cid-form-group select:focus {
    outline: none;
    border-color: var(--cid-primary-accent);
}

.cid-button {
    background: var(--cid-primary-accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s ease;
}

.cid-button:hover {
    background: #6a1eae;
    transform: scale(1.05);
}

.cid-button.secondary {
    background: transparent;
    border: 1px solid var(--cid-primary-accent);
    color: var(--cid-primary-accent);
}

.cid-button.secondary:hover {
    background: var(--cid-primary-accent);
    color: white;
}

.cid-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.cid-form-message.success {
    background-color: rgba(0, 255, 127, 0.1);
    border: 1px solid var(--cid-profit-color);
    color: var(--cid-profit-color);
}

.cid-form-message.error {
    background-color: rgba(255, 69, 0, 0.1);
    border: 1px solid var(--cid-loss-color);
    color: var(--cid-loss-color);
}

/* Payout Wallets */
.cid-wallet-entry {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.cid-wallet-entry select {
    flex: 1;
}

.cid-wallet-entry input {
    flex: 2;
}

.cid-remove-wallet-btn {
    background: var(--cid-loss-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 30px;
    text-align: center;
}

/* Logged Out / Login Form Styles */
.cid-logged-out-view .cid-card {
    max-width: 400px;
    margin: 0 auto;
}

.cid-logged-out-view #loginform p {
    margin-bottom: 15px;
}

.cid-logged-out-view #loginform label {
    color: var(--cid-text-medium);
    display: block;
    margin-bottom: 5px;
}

.cid-logged-out-view #loginform input[type="text"],
.cid-logged-out-view #loginform input[type="password"] {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cid-border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--cid-text-light);
    font-size: 1rem;
}

.cid-logged-out-view #loginform .forgetmenot label {
    color: var(--cid-text-medium);
}

.cid-logged-out-view #loginform .submit .button {
    background: var(--cid-primary-accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.cid-logged-out-view #loginform .submit .button:hover {
    background: #6a1eae;
}

.cid-logged-out-view .cid-register-link {
    text-align: center;
    margin-top: 20px;
}

.cid-logged-out-view .cid-register-link a {
    color: var(--cid-primary-accent);
    text-decoration: none;
}

.cid-logged-out-view .cid-register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .cid-summary-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cid-container {
        padding: 10px;
    }
    .cid-main-nav-list {
        justify-content: space-around;
        width: 100%;
    }
    .cid-main-nav-list a {
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }
    .cid-form .cid-form-grid {
        grid-template-columns: 1fr;
    }
    .cid-form .cid-full-width {
        grid-column: 1;
    }
    .cid-settings-tabs {
        display: flex;
        flex-direction: column;
    }
}
