.qr-decoder-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.qr-decoder-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-content {
    color: #fff;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.decoder-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

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

.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.upload-area {
    border: 2px dashed #e8e8e8;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #11998e;
    background: #f0fff5;
}

.upload-area.has-file {
    border-color: #38ef7d;
    background: #f0fff5;
}

.upload-content i {
    font-size: 3rem;
    color: #11998e;
    margin-bottom: 15px;
}

.upload-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.85rem !important;
    color: #999 !important;
}

.file-input {
    display: none;
}

.decode-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.decode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.camera-container video {
    width: 100%;
    height: auto;
    display: block;
}

.scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid rgba(56, 239, 125, 0.6);
    border-radius: 10px;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #38ef7d;
    border-style: solid;
    border-width: 3px;
}

.corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

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

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: #11998e;
}

.result-content {
    min-height: 150px;
    margin-bottom: 25px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    font-size: 0.95rem;
}

.result-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.result-box .result-content pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin: 0 0 15px;
    max-height: 200px;
    overflow-y: auto;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.result-actions .copy-btn, .result-actions .open-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.result-actions .copy-btn {
    background: #f5f5f5;
    color: #666;
}

.result-actions .copy-btn:hover {
    background: #e8e8e8;
}

.result-actions .open-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.result-type {
    display: flex;
    gap: 8px;
}

.type-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge.url {
    background: #e3f2fd;
    color: #1976d2;
}

.type-badge.email {
    background: #fff3e0;
    color: #ff9800;
}

.type-badge.phone {
    background: #f3e5f5;
    color: #7b1fa2;
}

.type-badge.text {
    background: #e8f5e9;
    color: #388e3c;
}

.history-section {
    margin-top: 25px;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

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

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-content {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    font-size: 0.8rem;
    color: #999;
}

.history-copy {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-copy:hover {
    background: #11998e;
    color: #fff;
    border-color: transparent;
}

.quick-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.qr-example {
    text-align: center;
}

.qr-code {
    margin: 0 auto 10px;
}

.qr-example p {
    font-size: 0.9rem;
    color: #666;
}

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

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.guide-item {
    text-align: center;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    color: #fff;
}

.guide-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.guide-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .decoder-main {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-container {
        flex-direction: column;
    }
}