﻿/* Tổng thể */
:root {
    --FontQr: "Noto Serif", serif;
    --BgQr_Image: linear-gradient(#0f5ab1, #0f5ab6);
    --ColorQr: #0f5ab1;
}
html, body {
    height: 100%;
    margin: 0;
    background-color: #f4f7fa;
    display: flex;
    flex-direction: column;
    font-family: --FontQr;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-image: var(--BgQr_Image);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

    .navbar-menu li {
        margin-left: 20px;
    }

    .navbar-menu a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        transition: color 0.3s ease;
    }

        .navbar-menu a:hover {
            color: #ffeb3b;
        }

/* Header Title */
.header-title {
    text-align: center;
    color: var(--ColorQr);
    margin-top: 46px;
    margin-bottom: 46px;
    font-size: 24px;
    animation: fadeIn 1s ease-in;
}
    .header-title sologan {
        text-align: center;
        color: var(--ColorQr);
        font-size: 20px;
    }

.search_Res {
    text-align: center;
    color: var(--ColorQr);
    margin-bottom: 36px;
    margin-top: 68px;
}
/* Main Content */
main {
    flex: 1;
    padding: 23px;
}

/* Footer */
.footer {
    background-image: var(--BgQr_Image);
    color: white;
    text-align: center;
    padding: 2px 0;
    width: 100%;
}

.footer-line {
    border: 1px solid #fff;
    width: 80%;
    margin: 10px auto;
}

.social-links {
    margin-top: 10px;
}

.social-icon {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

    .social-icon:hover {
        transform: scale(1.2);
        color: #4CAF50;
    }

/* Search Section (Index.cshtml) */
.search-section {
    /*max-width: 800px;*/
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease;
}

.section-title {
    text-align: center;
    color: #4CAF50;
    font-size: 28px;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: #2196F3;
    font-size: 20px;
    margin: 20px 0;
}

.search-container, .qr-container {
    text-align: center;
    margin-bottom: 30px;
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #2196F3;
    font-weight: 500;
}

.search-input {
    padding: 12px;
    width: 60%;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

    .search-input:focus {
        border-color: #4CAF50;
        outline: none;
    }

.search-btn, .scan-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg,#66BB6A, #008200);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .search-btn:hover, .scan-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

.stop-btn {
    background: linear-gradient(45deg, #f44336, #ef5350);
    display: none;
}

.camera-container {
    text-align: center;
    display: none;
}

.camera-video {
    border: 2px solid #4CAF50;
    border-radius: 10px;
}

.qr-result {
    margin-top: 10px;
    color: #2196F3;
    font-weight: 500;
}

/* Result Section (Search.cshtml) */
.result-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

    .result-table th, .result-table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .result-table th {
        background-color: #4CAF50;
        color: white;
        font-weight: 700;
    }

    .result-table tr:hover {
        background-color: #f5f5f5;
        transition: background-color 0.3s ease;
    }

.view-btn {
    padding: 8px 16px;
    background: linear-gradient(45deg, #489679, #347f63);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .view-btn:hover {
        transform: scale(1.05);
    }

.pdf-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

    .pdf-container h3 {
        color: #4CAF50;
        margin-bottom: 15px;
    }

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Search Again Button (Thêm mới) */
.search-again-container {
    text-align: center;
    margin-bottom: 20px;
}

.search-again-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #FF9800, #FFB300);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .search-again-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.camera-canvas {
    display: none;
}
