* { box-sizing: border-box; font-family: 'Consolas', monospace; }
body { margin: 0; background-color: #121212; color: #e0e0e0; }

.hidden { display: none !important; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); display: flex;
    justify-content: center; align-items: center; z-index: 100;
}
.modal-content {
    background: #1e1e1e; padding: 2.5rem; border-radius: 12px;
    text-align: center; border: 1px solid #333; min-width: 350px;
}
.modal-content h2 { margin-top: 0; color: #00d4aa; }
.modal-content input {
    padding: 12px; margin: 15px 0; width: 100%;
    background: #2a2a2a; color: white; border: 1px solid #555; border-radius: 6px;
    font-size: 1rem;
}
.modal-content button {
    padding: 12px; width: 100%; background: #00d4aa; color: black;
    border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 1rem;
}
.modal-content button:hover { background: #00ffcc; }
.error-text { color: #ff6666; font-size: 0.9em; margin-top: 10px; min-height: 20px; }


/* App */
#app-container { padding: 20px; max-width: 1200px; margin: 0 auto; }
header { background: #1a1a1a; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
h1 { margin: 0 0 10px 0; font-size: 1.5em; color: #00d4aa; }

.controls-vertical p { margin: 0 0 10px 0; font-size: 0.9em; color: #aaaaaa; }
.controls-vertical textarea {
    width: 100%; padding: 10px; background: #333; color: white;
    border: 1px solid #555; border-radius: 4px; resize: vertical;
}

.button-row { display: flex; gap: 10px; margin-top: 15px; }
.button-row button {
    padding: 10px 20px; color: white;
    border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1em;
}
#track-btn { background: #00d4aa; color: black; }
#track-btn:hover { background: #00ffcc; }
#refresh-btn { background: #005588; }
#refresh-btn:hover { background: #0077bb; }
#test-btn { background: #8e44ad; }
#test-btn:hover { background: #9b59b6; }

#status-bar { margin-top: 15px; font-size: 0.9em; color: #aaffaa; }

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}
.card {
    background: #252525; padding: 15px; border-radius: 8px;
    border: 1px solid #333; display: flex; flex-direction: column; gap: 10px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; }
.email-text { color: #00d4aa; font-weight: bold; word-break: break-all; }
.copy-btn { background: #393e46; border: none; color: white; cursor: pointer; padding: 5px 8px; border-radius: 4px; }
.copy-btn:hover { background: #555; }
.otp-display {
    font-size: 2em; font-weight: bold; color: #ffd369; text-align: center;
    background: #1a1a1a; padding: 10px; border-radius: 4px;
}
.subject-text { font-size: 0.85em; color: #aaaaaa; }
.status-indicator { font-size: 0.8em; text-transform: uppercase; font-weight: bold;}
.status-waiting { color: #ffaa00; }
.status-success { color: #aaffaa; }
