/*
Theme Name: Option Money Manager
Theme URI: https://example.com
Author: You
Description: A unique trading log theme with user management and theme stacking.
Version: 1.0
*/

:root {
    /* Default Dark Theme */
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #334155;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Light Theme (Excel Style) */
body.theme-light {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Cyber Theme */
body.theme-cyber {
    --bg-body: #050505;
    --bg-card: #111;
    --bg-input: #000;
    --text-main: #00ff41;
    --text-muted: #008f11;
    --accent: #00ff41;
    --success: #00ff41;
    --danger: #ff003c;
    --warning: #fcee0a;
    --border: #333;
    --shadow: 0 0 15px rgba(0, 255, 65, 0.1);
    --font-family: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 80px 1fr; gap: 20px; }
.main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hidden { display: none !important; }
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

/* Typography & Elements */
h1, h2, h3 { color: var(--accent); font-weight: 700; }
input {
    width: 100%; padding: 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background-color: var(--bg-input);
    color: var(--text-main); margin-bottom: 15px; font-family: inherit;
}
button {
    padding: 10px 20px; border-radius: var(--radius); border: none;
    cursor: pointer; font-weight: 600; transition: 0.2s;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-win { background-color: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid var(--success); }
.btn-loss { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); }

/* Theme Stacker */
.theme-stacker { display: flex; flex-direction: column; gap: 15px; padding-top: 60px; }
.theme-dot {
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: 0.2s;
}
.theme-dot.active { border-color: var(--text-main); transform: scale(1.1); }
.dot-dark { background: #1e293b; }
.dot-light { background: #f3f4f6; border: 1px solid #ccc; }
.dot-cyber { background: #000; border: 1px solid #00ff41; }

/* Table */
.table-container { overflow-x: auto; max-height: 500px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); background: var(--bg-body); position: sticky; top: 0; }
td { padding: 12px; border-bottom: 1px solid var(--border); }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-win { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-loss { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* Stats */
.stats-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stat-val { font-weight: 700; }
.val-pos { color: var(--success); }
.val-neg { color: var(--danger); }

/* Login Wrapper */
.wp-login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-box { background: var(--bg-card); padding: 40px; border-radius: var(--radius); width: 350px; text-align: center; box-shadow: var(--shadow); }

@media(max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .theme-stacker { flex-direction: row; justify-content: center; padding: 0 0 20px 0; }
    .main-content { grid-template-columns: 1fr; }
}



        /* Exact Upload UI Match */
    .upload-section-custom {
        background: var(--bg-card, #15121e);
        border: 1px solid var(--border, #2e2a3e);
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 25px;
    }
    .upload-text-block { margin-bottom: 15px; }
    .upload-title { color: var(--text-main); font-weight: 600; font-size: 1rem; margin-bottom: 5px; }
    .upload-subtitle { color: var(--text-muted); font-size: 0.85rem; }
    
    .upload-action-block { display: flex; align-items: center; gap: 15px; }
    
    /* Hide the ugly default file input */
    #trade-image { display: none; } 
    
    /* Purple Choose File Button */
    .upload-choose-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.9rem;
        transition: 0.3s;
        display: inline-block;
    }
    .upload-choose-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
    
    /* "No file chosen" text */
    .upload-file-name { color: var(--text-muted); font-size: 0.9rem; }


