/* Settings tab specific styles */

.settings-container {
    max-width: 800px;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #e7e9ea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section-title .icon {
    font-size: 20px;
}

/* Account settings */
.account-card {
    background: #1a1d21;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #2f3336;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.account-name {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.account-fields {
    display: grid;
    gap: 12px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-label {
    width: 120px;
    color: #8b98a5;
    font-size: 13px;
}

.field-input {
    flex: 1;
    position: relative;
}

.field-input input {
    width: 100%;
    padding-right: 40px;
}

.field-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b98a5;
    cursor: pointer;
    font-size: 14px;
}

.field-toggle:hover {
    color: #e7e9ea;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2f3336;
}

.account-balance {
    margin-top: 15px;
    padding: 12px;
    background: #0f1419;
    border-radius: 6px;
}

.balance-label {
    font-size: 12px;
    color: #8b98a5;
    margin-bottom: 4px;
}

.balance-value {
    font-size: 20px;
    font-weight: bold;
    color: #00ba7c;
}

/* Notification settings */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #1a1d21;
    border-radius: 6px;
}

.notification-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1d9bf0;
}

.notification-option-label {
    flex: 1;
}

.notification-option-title {
    font-size: 14px;
    color: #e7e9ea;
}

.notification-option-desc {
    font-size: 12px;
    color: #8b98a5;
    margin-top: 2px;
}

.notification-config {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.notification-config input {
    width: 150px;
}

/* Display settings */
.display-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.display-option {
    padding: 15px;
    background: #1a1d21;
    border-radius: 6px;
}

.display-option label {
    display: block;
    color: #8b98a5;
    font-size: 13px;
    margin-bottom: 8px;
}

.display-option select,
.display-option input {
    width: 100%;
}

/* Theme selector */
.theme-selector {
    display: flex;
    gap: 10px;
}

.theme-option {
    flex: 1;
    padding: 15px;
    background: #0f1419;
    border: 2px solid #2f3336;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.theme-option:hover {
    border-color: #1d9bf0;
}

.theme-option.active {
    border-color: #1d9bf0;
    background: rgba(29, 155, 240, 0.1);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.theme-preview.dark {
    background: linear-gradient(135deg, #0f1419 50%, #16181c 50%);
    border: 1px solid #2f3336;
}

.theme-preview.light {
    background: linear-gradient(135deg, #ffffff 50%, #f0f0f0 50%);
    border: 1px solid #ddd;
}

.theme-name {
    font-size: 13px;
    color: #e7e9ea;
}

/* Data management */
.data-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.data-action {
    padding: 20px;
    background: #1a1d21;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.data-action-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.data-action-title {
    font-size: 14px;
    color: #e7e9ea;
    margin-bottom: 5px;
}

.data-action-desc {
    font-size: 12px;
    color: #8b98a5;
    margin-bottom: 15px;
}

/* Danger zone */
.danger-zone {
    border: 1px solid #f91880;
    border-radius: 8px;
    padding: 20px;
    background: rgba(249, 24, 128, 0.05);
}

.danger-zone-title {
    color: #f91880;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.danger-zone-desc {
    color: #8b98a5;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Collapsible sections */
.collapsible-section {
    background: #16181c;
    border: 1px solid #2f3336;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.collapsible-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #1a1d21;
    transition: background 0.2s;
}

.collapsible-section .section-header:hover {
    background: #1c1f23;
}

.collapsible-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #e7e9ea;
}

.collapsible-section .section-title .icon {
    font-size: 18px;
}

.collapsible-section .section-toggle {
    color: #8b98a5;
    font-size: 12px;
    transition: transform 0.2s;
}

.collapsible-section.expanded .section-toggle {
    transform: rotate(0deg);
}

.collapsible-section .section-content {
    padding: 20px;
    border-top: 1px solid #2f3336;
}

/* Security options */
.security-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1d21;
    border-radius: 6px;
}

.security-option-label {
    flex: 1;
}

.security-option-title {
    font-size: 14px;
    color: #e7e9ea;
}

.security-option-desc {
    font-size: 12px;
    color: #8b98a5;
    margin-top: 2px;
}

.security-option-status {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.encryption-setup .form-group {
    margin-bottom: 10px;
}

.encryption-setup .form-group label {
    display: block;
    color: #8b98a5;
    font-size: 13px;
    margin-bottom: 6px;
}

.encryption-setup .form-group input {
    width: 100%;
    max-width: 300px;
}

/* Wallet management */
.wallets-section {
    padding: 0;
}

.wallets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1d21;
    border-radius: 8px;
    border: 1px solid #2f3336;
}

.wallet-item.default {
    border-color: #1d9bf0;
    background: rgba(29, 155, 240, 0.05);
}

.wallet-info {
    flex: 1;
}

.wallet-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wallet-name {
    font-size: 14px;
    font-weight: 600;
    color: #e7e9ea;
}

.wallet-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #1d9bf0;
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
}

.wallet-platform {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.wallet-platform.polymarket {
    background: #8b5cf6;
    color: white;
}

.wallet-platform.opinion {
    background: #6366f1;
    color: white;
}

.wallet-address {
    font-size: 12px;
    color: #8b98a5;
    font-family: 'Courier New', monospace;
}

.wallet-safe {
    font-size: 11px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    margin-top: 4px;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.no-wallets {
    text-align: center;
    padding: 30px;
    color: #8b98a5;
    font-size: 14px;
}

.add-wallet-form {
    padding: 20px;
    background: #1a1d21;
    border-radius: 8px;
    border: 1px solid #2f3336;
}

/* Account section */
.account-section {
    padding: 0;
}

.account-info-card {
    padding: 15px;
    background: #1a1d21;
    border-radius: 8px;
    display: flex;
    gap: 30px;
}

.account-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #8b98a5;
}

.detail-value {
    font-size: 14px;
    color: #e7e9ea;
    font-weight: 500;
}

.change-password-form {
    padding: 20px;
    background: #1a1d21;
    border-radius: 8px;
    border: 1px solid #2f3336;
}

.change-password-form .form-group {
    max-width: 300px;
}

.logout-section {
    text-align: left;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .settings-container {
        max-width: 100%;
    }

    .settings-section-title {
        font-size: 15px;
    }

    /* Account card */
    .account-card {
        padding: 15px;
    }

    .account-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .field-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .field-label {
        width: 100%;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn {
        width: 100%;
    }

    /* Notification options */
    .notification-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notification-config {
        margin-left: 0;
        width: 100%;
    }

    .notification-config input {
        width: 100%;
    }

    /* Display options */
    .display-options {
        grid-template-columns: 1fr;
    }

    /* Theme selector */
    .theme-selector {
        flex-direction: column;
    }

    /* Data actions */
    .data-actions {
        flex-direction: column;
    }

    .data-action {
        min-width: 100%;
    }

    /* Collapsible sections */
    .collapsible-section .section-header {
        padding: 12px 15px;
    }

    .collapsible-section .section-content {
        padding: 15px;
    }

    /* Security options */
    .security-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .encryption-setup .form-group input {
        max-width: 100%;
    }

    /* Wallet management */
    .wallet-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wallet-actions {
        width: 100%;
    }

    .wallet-actions .btn {
        flex: 1;
    }

    .wallet-address {
        word-break: break-all;
    }

    /* Account info */
    .account-info-card {
        flex-direction: column;
        gap: 15px;
    }

    .change-password-form .form-group {
        max-width: 100%;
    }

    /* Add wallet form */
    .add-wallet-form .form-group input,
    .add-wallet-form .form-group select {
        width: 100%;
    }
}
