body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
}

.navbar {
    background-color: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-item {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: #3498db;
}

.navbar-item.signin-button {
    background-color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar-item.signin-button:hover {
    background-color: #2980b9;
    color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 1rem;
}

p {
    color: #666;
    line-height: 1.6;
}

/* Trading Mode Toggle Styles */
.trading-mode-toggle-card {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trading-mode-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trading-mode-toggle-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.trading-mode-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.trading-mode-option {
    font-size: 1rem;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.trading-mode-option.active {
    color: #2980b9;
    font-weight: bold;
}

/* Authentication Mode Toggle Styles */
.auth-mode-toggle-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.auth-mode-toggle-container h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.auth-mode-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.auth-mode-option {
    font-size: 0.95rem;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.auth-mode-option.active {
    color: #2980b9;
    font-weight: bold;
}

/* Large toggle switch for trading mode */
.toggle-switch.large-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch.large-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch.large-toggle label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.toggle-switch.large-toggle label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch.large-toggle input:checked + label {
    background-color: #2196F3;
}

.toggle-switch.large-toggle input:checked + label:before {
    transform: translateX(30px);
}

/* Regular toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: #2196F3;
}

.toggle-switch input:checked + label:before {
    transform: translateX(26px);
}

/* Button styles */
.wallet-connect-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.wallet-connect-button:hover {
    background-color: #2980b9;
}

/* Add styles for OAuth components */
.oauth-section {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.oauth-description {
    margin-bottom: 15px;
    color: #ccc;
}

.oauth-status {
    margin: 10px 0 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.connection-status.connected {
    background-color: rgba(0, 180, 0, 0.2);
    border: 1px solid #00b400;
}

.connection-status.disconnected {
    background-color: rgba(180, 0, 0, 0.2);
    border: 1px solid #b40000;
}

.status-icon {
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
}

.connection-status.connected .status-icon {
    color: #00b400;
}

.connection-status.disconnected .status-icon {
    color: #b40000;
}

.oauth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.oauth-button {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 120px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.oauth-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.oauth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oauth-button.highlight {
    border: 2px solid #4a88ff;
}

.oauth-button.coinbase {
    background-color: #0052ff;
}

.oauth-button.binance {
    background-color: #f3ba2f;
    color: #000;
}

.oauth-button.kraken {
    background-color: #5741d9;
}

.oauth-button.kucoin {
    background-color: #24ae8f;
}

.oauth-button.mexc {
    background-color: #2b5cff;
}

.trading-settings-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.trading-settings-separator:before,
.trading-settings-separator:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #444;
}

.trading-settings-separator span {
    padding: 0 10px;
    font-size: 14px;
    color: #888;
}

.exchange-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.exchange-action {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-action.disconnect {
    background-color: #333;
    color: #ff5555;
    border: 1px solid #ff5555;
}

.exchange-action.buy-btc {
    background-color: #28a745;
    color: white;
}

.exchange-action:hover {
    opacity: 0.9;
}

/* OAuth callback page styles */
.oauth-callback-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
    text-align: center;
}

.oauth-loading {
    margin: 30px 0;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4a88ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.oauth-error {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(180, 0, 0, 0.2);
    border: 1px solid #b40000;
    border-radius: 4px;
}

.oauth-success {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 180, 0, 0.2);
    border: 1px solid #00b400;
    border-radius: 4px;
}

.oauth-error button,
.oauth-success button {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #4a88ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Enhanced trading UI for OAuth connected users */
.oauth-trading-section {
    margin-top: 20px;
}

.amount-input-container {
    display: flex;
    gap: 10px;
}

.amount-input-container input {
    flex: 2;
}

.amount-input-container select {
    flex: 1;
}

.trading-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.trading-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trading-buttons .buy-button {
    background-color: #28a745;
    color: white;
}

.trading-buttons .sell-button {
    background-color: #dc3545;
    color: white;
}

.trading-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Trade Notification Styles */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    max-width: 400px;
}

.trade-notification {
    pointer-events: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border-left: 6px solid;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    overflow: hidden;
}

.trade-notification.buy {
    border-left-color: #27ae60;
}

.trade-notification.sell {
    border-left-color: #e74c3c;
}

.trade-notification.visible {
    transform: translateX(0);
    opacity: 1;
}

.trade-notification.dismissing {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    padding: 16px;
}

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

.trade-icon {
    font-size: 16px;
    margin-right: 8px;
}

.trade-action {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #7f8c8d;
}

.notification-details {
    font-size: 13px;
    color: #7f8c8d;
}

.trade-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.quantity {
    font-weight: 600;
    color: #2c3e50;
}

.symbol {
    font-weight: 600;
    color: #34495e;
}

.exchange {
    color: #95a5a6;
    font-size: 12px;
}

.success-message {
    color: #27ae60;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive design for notifications */
@media (max-width: 480px) {
    .notifications-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }
    
    .trade-notification {
        margin-bottom: 8px;
    }
    
    .notification-content {
        padding: 12px;
    }
    
    .trade-action {
        font-size: 13px;
    }
} 