/* assets/css/style.css */
:root {
    --bg-color: #E2F0F9;
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background animated shapes */
.background-shapes {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #60A5FA;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #93C5FD;
    bottom: 20%;
    left: 20%;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 10;
}

.header {
    text-align: center;
    margin-bottom: 35px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary);
    letter-spacing: -1px;
}

.header p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
}

.glass-panel {
    background: var(--white);
    border-radius: 25px;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    padding: 25px;
    margin-bottom: 25px;
}

.scanner-container {
    position: relative;
    overflow: hidden;
    border: 2px solid #F1F5F9;
}

#reader {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

#reader video {
    border-radius: 15px;
}

.scanner-status {
    text-align: center;
    margin-top: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.clock-widget {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 30px;
}

#time {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

#date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
}

/* Overriding html5-qrcode styles */
#reader button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    margin: 10px 0;
    transition: 0.3s;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

#reader button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

#reader select {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #F1F5F9;
    background: #F8FAFC;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

