@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;800&family=Space+Mono:wght@700&display=swap');

:root {
    --bg-gradient: radial-gradient(circle at 10% 20%, rgb(33, 31, 56) 0%, rgb(18, 17, 36) 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #00ff87;
    --primary-gradient: linear-gradient(135deg, #60efff 0%, #00ff87 100%);
    --text-main: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; margin: 0;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.05);
    border-radius: 24px;
}

.auth-container {
    width: 100%; max-width: 380px; height: 600px;
    padding: 30px; display: flex; flex-direction: column;
    box-sizing: border-box; position: relative; overflow: hidden;
}

/* Header */
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 15px; }
.title-3d { margin: 0; font-weight: 800; font-size: 26px; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0px 4px 15px rgba(0, 255, 135, 0.4); }

.add-btn {
    background: rgba(255,255,255,0.1); color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
    width: 45px; height: 45px; font-size: 24px; font-weight: 300;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.add-btn:hover { background: var(--primary-gradient); color: #000; border: none; box-shadow: 0 5px 15px rgba(0,255,135,0.4); transform: scale(1.05); }

/* Timer */
.timer-wrapper { margin-bottom: 20px; }
.timer-text { font-size: 12px; font-weight: 600; color: #b0bec5; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between;}
#timer-seconds { color: var(--primary-color); text-shadow: 0 0 8px rgba(0,255,135,0.5); font-weight: 800;}
.progress-bar-bg { width: 100%; height: 6px; background: rgba(0,0,0,0.5); border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.8); }
.progress-bar-fill { height: 100%; width: 100%; background: var(--primary-gradient); border-radius: 10px; transition: width 1s linear; box-shadow: 0 0 10px rgba(0,255,135,0.8); }

/* List */
.codes-list { flex-grow: 1; overflow-y: auto; padding-right: 5px; }
.empty-state { text-align:center; color:rgba(255,255,255,0.4); margin-top:80px; font-weight:bold; line-height: 1.5; }

.code-item {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05);
    padding: 20px; border-radius: 16px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.code-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.1); }

.code-info .account-name { font-size: 13px; color: #b0bec5; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* Clickable Auth Code Styling */
.auth-code {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(0,255,135,0.4);
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}
.auth-code:hover { transform: scale(1.05); text-shadow: 0 0 20px rgba(0,255,135,0.8); }

/* Tooltip */
.code-tooltip {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 4px 8px;
    font-size: 10px; border-radius: 6px; opacity: 0; pointer-events: none;
    transition: 0.3s; white-space: nowrap; font-family: 'Poppins', sans-serif; letter-spacing: 0;
}
.auth-code:hover .code-tooltip { opacity: 1; top: -25px; }

.delete-btn { background: rgba(255, 8, 68, 0.2); border: 1px solid rgba(255,8,68,0.3); color: #ff0844; padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: bold; cursor: pointer; transition: all 0.2s; text-transform: uppercase; }
.delete-btn:hover { background: #ff0844; color: white; box-shadow: 0 4px 10px rgba(255,8,68,0.4); }

/* Modal Inputs & Buttons */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 100; }
.hidden { display: none !important; }
.modal-content { width: 90%; max-width: 320px; text-align: center; }

.glass-input { width: 100%; padding: 15px; margin: 10px 0 20px 0; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: white; font-size: 18px; text-align: center; letter-spacing: 2px; font-weight: bold; text-transform: uppercase; box-sizing: border-box; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); transition: 0.3s; }
.glass-input:focus { outline: none; border-color: var(--primary-color); box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 15px rgba(0,255,135,0.3); }

.btn-3d { width: 100%; padding: 15px; background: var(--primary-gradient); color: #000; font-weight: 800; border: none; border-radius: 12px; font-size: 15px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s; box-shadow: 0 5px 15px rgba(0,255,135,0.3), inset 0 2px 2px rgba(255,255,255,0.5); }
.btn-3d:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.4); }
.btn-close { margin-top: 15px; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); box-shadow: none; }

::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; }
.toast { background: rgba(20,20,20,0.9); border-left: 4px solid var(--primary-color); color: white; padding: 15px 25px; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideIn 0.3s ease-out; font-weight: 600; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

