/* ---------------------------------------------
   LIGHT THEME
--------------------------------------------- */
body {
    font-family: Arial;
    margin: 20px;
    background: #f7f7f7;
    color: #000;
    transition: background 0.3s, color 0.3s;
}

table {
    border-collapse: collapse;
    margin-bottom: 40px;
}

th, td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: center;
    vertical-align: bottom;
    width: 300px;
    height: 60px;
    transition: background 0.3s, color 0.3s;
}

th {
    background: #007BFF;
    color: #fff;
    font-size: 12px;
}

tr:hover {
    background: #f1f1f1;
    cursor: pointer;
}

canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

button {
    padding: 4px 8px;
    margin: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* ---------------------------------------------
   DARK THEME
--------------------------------------------- */
body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark h1 {
    color: #e0e0e0;
}

body.dark table {
    border-color: #555;
}

body.dark th {
    background: #222;
    color: #fff;
    border-color: #555;
}

body.dark td {
    background: #1e1e1e;
    color: #ccc;
    border-color: #444;
}

body.dark tr:hover {
    background: #333;
}

body.dark button {
    background: #333;
    color: #eee;
    border: 1px solid #666;
}

/* ---------------------------------------------
   TOGGLE THEME BUTTON
--------------------------------------------- */
.toggle-theme {
    position: fixed;
    top: 15px;
    right: 20px;
    padding: 8px 14px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

body.dark .toggle-theme {
    background: #333;
}
