* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f8fa;
    min-height: 100vh;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 60px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: url('/ab7570e386decc031e3f1b77b3cc15a7.jpg') no-repeat center center fixed;
    background-size: cover;
}

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

.login-header h1 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.login-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 4px;
}

.login-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.login-tabs .tab-item.active {
    background: #667eea;
    color: #fff;
    font-weight: 500;
}

.nav-header {
    background: #fff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-header h2 {
    font-size: 18px;
    color: #333;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
}

.profile-card .name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-card .phone {
    font-size: 14px;
    opacity: 0.9;
}

.profile-card .status {
    margin-top: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}

.stat-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-item .number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.stat-item .label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.action-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-item:active {
    transform: scale(0.98);
}

.action-item .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.action-item .title {
    font-size: 14px;
    color: #333;
}

.scan-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scan-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: 80px;
}

.scan-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s;
}

.scan-btn:active {
    transform: scale(0.95);
}

.scan-btn .icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.scan-btn .text {
    font-size: 16px;
}

.result-card {
    background: #fff;
    margin: 15px;
    margin-top: 0;
    border-radius: 12px;
    padding: 20px;
}

.result-card.success {
    border-left: 4px solid #07c160;
}

.result-card.error {
    border-left: 4px solid #ee0a24;
}

.result-card.warning {
    border-left: 4px solid #ff976a;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-info {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-info:last-child {
    border-bottom: none;
}

.result-info .label {
    color: #999;
    font-size: 14px;
}

.result-info .value {
    color: #333;
    font-size: 14px;
    margin-top: 5px;
}

.history-item {
    background: #fff;
    margin: 10px 15px;
    border-radius: 8px;
    padding: 15px;
}

.history-item .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-item .code {
    font-weight: bold;
    color: #333;
}

.history-item .time {
    color: #999;
    font-size: 12px;
}

.history-item .info {
    font-size: 14px;
    color: #666;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.scanner-container {
    width: 100%;
    max-width: 400px;
}

#qr-reader {
    width: 100% !important;
}

#qr-reader video {
    width: 100% !important;
    height: auto !important;
}

#qr-reader__scan_region {
    min-height: 300px;
}

#qr-reader__dashboard {
    display: none !important;
}

.captcha-img {
    height: 32px;
    width: auto;
    max-width: 80px;
    cursor: pointer;
    border-radius: 4px;
    object-fit: contain;
}
