* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.header-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}
.qr-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
#reader {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}
.result-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.history-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}
.history-item:last-child {
    border-bottom: none;
}
.history-time {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
.history-content {
    margin-top: 5px;
}
.history-value {
    margin-top: 5px;
    font-weight: bold;
    color: #4CAF50;
}
.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.tab {
    padding: 10px 15px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-bottom: 2px solid transparent;
}
.tab.active {
    border-bottom: 2px solid #4CAF50;
    color: #4CAF50;
}
.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.btn-secondary {
    background-color: #2196F3;
}
.btn-danger {
    background-color: #f44336;
}
.btn-small {
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
    margin: 5px 0;
}
.btn-icon {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon svg {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}
.input-container {
    margin-top: 10px;
}
.input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.input-field {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
}
.link {
    color: #2196F3;
    text-decoration: underline;
}
.empty-history {
    text-align: center;
    padding: 15px;
    color: #888;
}
.tips {
    background-color: #FFF9C4;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.tips-ios {
    background-color: #ffebee;
}
.error-container {
    background-color: #ffebee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f44336;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.modal-header h3 {
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 10px;
}
@media (max-width: 400px) {
    .container {
        padding: 10px;
    }
    .qr-container, .result-container, .history-container {
        padding: 10px;
    }
    .header-buttons {
        position: static;
        margin: 10px 0;
        justify-content: center;
    }
}