﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;

 
  background-color: #1b6ec2;
  border-color: #1861ac;
}
 .d-none{
     display: none;
         }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
    /* Margin bottom by footer height */

    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}
.footer {
  /*position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;*/ /* Vertically center the text there */
}
/* Main Styles for Quản lý cấp quyền sử dụng Nhãn hiệu tập thể */

/* General Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.site-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

.site-description {
    color: #666;
    font-size: 0.9rem;
}

.logo {
    width: 60px;
    height: auto;
}

/* Navigation */
.navbar {
    background-color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #3498db !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

.navbar-nav .nav-item.active .nav-link {
    color: #3498db !important;
    font-weight: 600;
}

/* Banner Section */
.banner-section {
    background-color: #3498db;
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

    .banner-section h2 {
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .banner-section .btn-primary {
        background-color: #2c3e50;
        border-color: #2c3e50;
        padding: 0.6rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .banner-section .btn-primary:hover {
            background-color: #1a252f;
            border-color: #1a252f;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

/* Features Section */
.features-section h3,
.quick-access h3,
.tech-features h3 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

    .features-section h3:after,
    .quick-access h3:after,
    .tech-features h3:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: #3498db;
    }

.feature-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    color: #3498db;
}

/* Quick Access Cards */
.access-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .access-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .access-card .card-title {
        color: #2c3e50;
        font-weight: 600;
    }

    .access-card .btn-outline-primary {
        color: #3498db;
        border-color: #3498db;
    }

        .access-card .btn-outline-primary:hover {
            background-color: #3498db;
            color: #fff;
        }

/* Technical Features */
.tech-feature {
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

    .tech-feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.tech-icon {
    color: #3498db;
}

/* Footer */
footer {
    background-color: #2c3e50 !important;
}

    footer h5 {
        font-weight: 600;
        margin-bottom: 1.2rem;
        color: #3498db;
    }

    footer a {
        transition: all 0.3s ease;
    }

        footer a:hover {
            color: #3498db !important;
            text-decoration: none;
            padding-left: 5px;
        }

/* Form Styles */
.form-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

    .form-section h3 {
        color: #2c3e50;
        font-weight: 700;
        margin-bottom: 1.5rem;
        padding-bottom: 15px;
        border-bottom: 2px solid #3498db;
    }

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

    .btn-primary:hover {
        background-color: #2980b9;
        border-color: #2980b9;
    }

/* Table Styles */
.table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .table-container h3 {
        color: #2c3e50;
        font-weight: 700;
        margin-bottom: 1.5rem;
        padding-bottom: 15px;
        border-bottom: 2px solid #3498db;
    }

.table thead th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.05);
}

.table td, .table th {
    vertical-align: middle;
}

/* Status Badges */
.badge-success {
    background-color: #2ecc71;
}

.badge-warning {
    background-color: #f39c12;
}

.badge-danger {
    background-color: #e74c3c;
}

.badge-info {
    background-color: #3498db;
}

.badge-secondary {
    background-color: #7f8c8d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-mobile{
        width: 50%;
    }
    .site-title {
        font-size: 1.2rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .auth-buttons {
        margin-top: 1rem;
        text-align: center;
    }

    .banner-section {
        padding: 2rem 0;
    }

        .banner-section h2 {
            font-size: 1.5rem;
        }

    .feature-card, .access-card, .tech-feature {
        margin-bottom: 1.5rem;
    }
}


.img-main {
    max-width: 600px; /* hoặc 100% nếu muốn full container */
    height: auto;
    border-radius: 8px;
}

.img-small {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Tăng chiều rộng modal một chút nếu cần */
#changePass .modal-dialog {
    max-width: 500px;
}

/* Nội dung modal bo tròn và có bóng */
#changePass .modal-content {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Tiêu đề modal */
#changePass .modal-header {
    background-color: #0d6efd; /* xanh Bootstrap */
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Input trong form */
#changePass input[type="password"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

    /* Input focus */
    #changePass input[type="password"]:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    }

/* Khoảng cách giữa các input */
#changePass .form-group {
    margin-bottom: 15px;
}

/* Nút submit */
#changePass button[type="submit"] {
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
}

.dangky-item {
    display: flex;
}

.dangky-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.dangky-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.dangky-ten {
    font-weight: 600;
    font-size: 20px;
}

.dangky-donvi {
    font-size: 16px;
    color: #6c757d;
}
.bg-hethan {
    background: #FF6B00;
    color: #FFf;
}



.modal-giahan-btn-open {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: 0.3s;
}

    .modal-giahan-btn-open:hover {
        opacity: 0.9;
    }

/* Modal gia hạn (mở trong modal khác) */
.modal-giahan-container{
    position: fixed !important; /* Phủ toàn màn hình, không theo modal cha */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2000 !important; /* cao hơn modal gốc (1050) */
    background: rgba(0, 0, 0, 0.6); /* nền tối mờ */
    overflow: hidden;
}

.modal-lichsu-container {
    position: fixed !important; /* Phủ toàn màn hình, không theo modal cha */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2000 !important; /* cao hơn modal gốc (1050) */
    background: rgba(0, 0, 0, 0.6); /* nền tối mờ */
    overflow: hidden;
}
    /* Đảm bảo modal dialog nằm giữa màn hình */
    .modal-giahan-container .modal-dialog {
        z-index: 2001;
    }

/* Nâng modal backdrop của modal 2 để không bị modal 1 che */
.modal-backdrop.show.modal-giahan-backdrop {
    z-index: 1999 !important;
}

/* Thêm hiệu ứng fade đẹp hơn */
.modal-giahan-container.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-20px);
}

.modal-giahan-container.show .modal-dialog {
    transform: translateY(0);
}
.modal-giahan-content {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.modal-giahan-header {
    background-color: #2e7d32;
    color: #ffffff;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Body */
.modal-giahan-body {
    background: #f9fafb;
    padding: 25px;
    font-size: 14px;
    color: #1f2d3d;
}

.modal-giahan-textarea {
    resize: none;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s;
}

    .modal-giahan-textarea:focus {
        border-color: #66bb6a;
        box-shadow: 0 0 0 0.15rem rgba(46, 125, 50, 0.25);
    }

/* Footer */
.modal-giahan-footer {
    background: #f5f7fa;
    border-top: 1px solid #e9ecef;
    padding: 14px 24px;
}

.modal-giahan-btn-cancel {
    border-radius: 6px;
    font-weight: 500;
}

.modal-giahan-btn-send {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    transition: 0.3s;
}

    .modal-giahan-btn-send:hover {
        background: linear-gradient(90deg, #388e3c, #81c784);
    }

/* Responsive tweaks */
@media (max-width: 576px) {
    .modal-giahan-body {
        padding: 20px 16px;
    }

    .modal-giahan-btn-open {
        width: 100%;
    }
}
/* Nền tối nhẹ toàn màn hình khi mở modal */
.modal-success-container {
    background: rgba(0, 0, 0, 0.4); /* nền tối nhẹ */
    backdrop-filter: blur(2px); /* làm mờ tinh tế */
}

    /* Canh giữa modal cả chiều dọc lẫn ngang */
    .modal-success-container .modal-dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%); /* Căn giữa tuyệt đối */
        margin: 0;
    }

/* Bo góc & hiệu ứng trượt mượt */
.modal-success-content {
    border-radius: 16px;
    background: #fff;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Header đẹp hơn */
.modal-success-header {
    background: linear-gradient(135deg, #198754, #28a745);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 1rem;
    text-align: center;
}

/* Body */
.modal-success-body {
    padding: 1.5rem 1rem;
    text-align: center;
}

/* Footer */
.modal-success-footer {
    border: none;
    padding-bottom: 1rem;
    justify-content: center;
}
.bg-dinhchi {
    background-color: #ff6b00; /* cam đậm */
    color: #fff;
}