body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.mode-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: #eee;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
}

.relative {
    position: relative;
}

.input-indicators {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    pointer-events: none;
    display: flex;
    gap: 5px;
}

.indicator-badge {
    padding: 2px 4px;
    border-radius: 3px;
    background: #eee;
    color: #666;
    font-weight: bold;
}

.caps-on {
    background: #ffc107;
    color: #000;
}

.tg-link {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #007bff;
    padding: 2px 6px;
    border-radius: 4px;
}

.tg-link:hover {
    background: #007bff;
    color: white;
}

.header-with-logout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-secondary {
    background-color: #6c757d;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.hidden {
    display: none !important;
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
}

.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #007bff;
}

.info-grid {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-grid div {
    margin-bottom: 8px;
}

.balance-form {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.quick-amounts {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-quick {
    padding: 4px 8px;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-quick:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background-color: #e7f3ff;
    color: #0b5394;
    border: 1px solid #cfe2ff;
}
