* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
}

main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanner-container {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#reader {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
    display: none;
}

.result-container {
    padding: 20px;
    text-align: center;
}

.result-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #495057;
    border: 1px solid #e9ecef;
}

.result-text {
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    background-color: #ffffff;
    color: #343a40;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-primary {
    background-color: #e9ecef;
    color: #212529;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #dee2e6;
}

.btn-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.btn-success:hover {
    background-color: #c3e6cb;
    border-color: #b1dfbb;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.upload-section {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    background-color: #ffffff;
    color: #343a40;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.file-input-label:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

footer {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.attribution {
    color: #6c757d;
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #495057;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 80%;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #ffffff;
    color: #343a40;
    border-bottom: 3px solid #343a40;
}

.tab-content {
    display: none;
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #343a40;
}

.close {
    color: #adb5bd;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #6c757d;
}

.modal-body {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.contact-label {
    font-weight: 600;
    min-width: 80px;
    color: #495057;
}

.contact-value {
    flex: 1;
    color: #212529;
}

.wifi-item {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.wifi-label {
    font-weight: 600;
    min-width: 100px;
    color: #495057;
}

.wifi-value {
    flex: 1;
    color: #212529;
    font-family: monospace;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .scanner-container {
        border-radius: 0;
    }
    
    main {
        padding: 10px;
    }
    
    .btn, .file-input-label {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .result-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
                                 }
