/* ===== BASE ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg,#f5f7fa,#e4e8f0);
}

/* ===== CARD ===== */
.tt-dashboard, .tt-login {
    max-width: 650px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===== FLEX LAYOUT (🔥 FIX) ===== */
.tt-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* LINKS */
.tt-left {
    flex: 1;
}

/* RECHTS = KEYPAD */
.tt-right {
    width: 200px;
}

/* ===== TITLES ===== */
h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

/* ===== USERS ===== */
.tt-users {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tt-user-btn {
    padding: 18px;
    border-radius: 16px;
    background: #111;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* ACTIVE USER */
.tt-user-btn.active {
    background: linear-gradient(135deg,#ff4f87,#ff7aa2);
    transform: scale(1.05);
}

.tt-user-btn:hover {
    transform: scale(1.05);
}

/* ===== TOTAL ===== */
.tt-total {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
}

/* ===== BUTTONS ===== */
button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg,#ff4f87,#ff7aa2);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.2s;
}

button:hover {
    transform: scale(1.03);
}

/* ===== LOGOUT ===== */
#tt-logout {
    background: #111;
}

/* ===== CARD LIST ===== */
.tt-card {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.tt-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* ===== KEYPAD (🔥 HIER ZAT JE BUG) ===== */
.tt-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* KNOPPEN */
.tt-key,
.tt-clear {
    height: 65px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

/* HOVER */
.tt-key:hover,
.tt-clear:hover {
    background: #333;
    transform: scale(1.05);
}

/* OK */
#tt-add-tip,
#tt-login {
    background: linear-gradient(135deg,#ff4f87,#ff7aa2);
}

/* DELETE */
.tt-clear {
    background: #444;
}

/* ===== SCROLLBAR ===== */
.tt-card::-webkit-scrollbar {
    width: 6px;
}

.tt-card::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* ===== MOBILE FIX ===== */
@media(max-width: 600px){
    .tt-flex{
        flex-direction: column;
    }

    .tt-right{
        width: 100%;
    }
}