:root {
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-1lg: 20px;
    --text-2lg: 22px;
    --text-xl: 26px;
    --text-2xl: 33px;
    --text-3xl: 41px;
    --text-4xl: 51px;

    /* Color system from design guide */
    --color-beige: #ffffff;
    /* Main background */
    --color-maastricht: #092834;
    /* Main text, strong elements */
    --color-teal: #743902;
    /* Primary accent, CTA, links */
    --color-ryb-green: #743902;
    --color-eacc2c: #EE7201;
    --color-eacc2c1: #EACC2C;
    /* Secondary accent, border, chart */
    --color-android-green: #51c400;
    --color-brown: linear-gradient(to right, #743902, #613f2e);
    /* Limited use, icons, highlight */
    --color-gradient: #f6eee3;
    --color-danger: #f54900;
    --var-color-body:linear-gradient(135deg, #51c400 0%, #EACC2c 100%);
    --var-color-white: #ffffff;
    --var-color-save-modal1: linear-gradient(45deg, var(--color-eacc2c), #af5502);
    
    /* Danger/Error color */
    /* New 3D Design Variables */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
}

/* Color Utility Classes */
.bg-beige {
    background-color: var(--color-beige);
}

.bg-maastricht {
    background-color: var(--color-maastricht);
}
.bg-save-modal1{
    background: var(--var-color-save-modal1);
}
.bg-teal {
    background-color: var(--color-teal);
}

.bg-ryb-green {
    background-color: var(--color-ryb-green);
}
.bg-eacc2c {
    background-color: var(--color-eacc2c);
}
.bg-brown1{
    background-color: var(--color-teal);
}
.bg-card-tower{ 
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}
.bg-android-green {
    background-color: var(--color-android-green);
}
.bg-white-card1 {
    background-color: var(--var-color-white);
}
.text-beige {
    color: var(--color-beige);
}
.text-save-modal1{
    color: var(--var-color-save-modal1);
}
.text-eacc2c {
    color: var(--color-eacc2c);
}
.text-maastricht {
    color: var(--color-maastricht);
}

.text-teal {
    color: var(--color-teal);
}
.text-brown1 {
    color: var(--color-brown);
}
.text-ryb-green {
    color: var(--color-ryb-green) !important;
}

.text-android-green {
    color: var(--color-android-green);
}
.bg-brown1:hover,
.bg-brown1:focus {
    background-color: var(--color-eacc2c) !important;
    color: #fff !important;
    transition: background 0.2s, color 0.2s;
}
.border-beige {
    border-color: var(--color-beige);
}

.border-maastricht {
    border-color: var(--color-maastricht);
}
.color-eacc2c1:hover{
    color: var(--color-eacc2c1);
}
.border-teal {
    border-color: var(--color-teal);
}
.bg-model{
    background-color: #e7a005;
}
.border-ryb-green {
    border-color: var(--color-ryb-green) !important;
}

.border-android-green {
    border-color: var(--color-android-green);
}

/* Background Opacity Utilities */
.bg-opacity-10 {
    background-color: rgba(var(--color-teal), 0.1);
}

.bg-opacity-20 {
    background-color: rgba(var(--color-teal), 0.2);
}

.bg-opacity-30 {
    background-color: rgba(var(--color-teal), 0.3);
}

.bg-opacity-40 {
    background-color: rgba(var(--color-teal), 0.4);
}

.bg-opacity-50 {
    background-color: rgba(var(--color-teal), 0.5);
}
.bg-card-infortower{
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}
/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 4px var(--shadow-color);
}

.shadow-md {
    box-shadow: 0 4px 6px var(--shadow-color);
}

.shadow-lg {
    box-shadow: 0 8px 16px var(--shadow-color);
}

.shadow-xl {
    box-shadow: 0 12px 24px var(--shadow-color);
}

.border-white {
    border: 1px solid white;
  }
  

.glass-border {
    border: 1px solid var(--glass-border);
}

/* Hover Effect Utilities */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Text Shadow Utilities */
.text-shadow-sm {
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.text-shadow-md {
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.text-shadow-lg {
    text-shadow: 3px 3px 6px var(--shadow-color);
}

/* Border Radius Utilities */
.radius-sm {
    border-radius: 4px;
}

.radius-md {
    border-radius: 8px;
}

.radius-lg {
    border-radius: 16px;
}

.radius-xl {
    border-radius: 24px;
}

.radius-full {
    border-radius: 9999px;
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Z-index Utilities */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}
.w-80{
    width: 80%;
}
/* Text Size Utility Classes */
.text-sm {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.text-md {
    font-size: var(--text-md);
    line-height: 1.5;
}

.text-lg {
    font-size: var(--text-lg);
    line-height: 1.5;
}

.text-1lg {
    font-size: var(--text-1lg);
    line-height: 1.5;
}

.text-2lg {
    font-size: var(--text-2lg);
    line-height: 1.5;
}

.text-xl {
    font-size: var(--text-xl);
    line-height: 1.5;
}

.text-2xl {
    font-size: var(--text-2xl);
    line-height: 1.5;
}

.text-3xl {
    font-size: var(--text-3xl);
    line-height: 1.5;
}

.text-4xl {
    font-size: var(--text-4xl);
    line-height: 1.5;
}

.radius12 {
    border-radius: 0 24px 24px 0px;
}

.bg-body {
    background: #f54900 !important;
}
.bg-body-bg1 {
    background: var(--color-gradient);
}

.bg-body-img {
    background-image: url("../image/bg-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 1000px;
}
  .min-h-formlogin{
    min-height: 572px;
  }
  .min-h-1000{
    min-height: 1000px;
  }
  .min-h-500{
    min-height: 500px;
  }
  .min-h-300{
    min-height: 300px;
  }
  .min-h-200{
    min-height: 200px;
  }
.text-body {
    color: var(--color-gradient);
}

.bg-color-danger {
    background: var(--color-danger);
}
.bg-color-danger:hover {
    background: var(--color-danger);
}
.text-color-danger {
    color: var(--color-danger);
}

.card.glass-bg {
    height: 100%;

}

.form-control.password-input {
    padding-right: 2.5rem;
}

.password-field-wrapper {
    position: relative;
}
.card-text {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;               /* Firefox */
    scrollbar-color: #ccc transparent;   /* Firefox */
  }
  
  /* Cho Chrome */
  .card-text::-webkit-scrollbar {
    width: 6px;
  }
  .card-text::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
  }
  
.validation-message,
.login-subtitle {
    font-size: 12px !important;
}
/* Sticky sidebar cố định khi cuộn */
.sidebar-sticky {
    position: sticky;
    top: 100px; /* chỉnh theo chiều cao header nếu có */
    z-index: 100;
  }
.login-image-section {
    background-image: url('assets/image/bg-login.jpg');
    background-size: cover;
    background-position: center;
    height: 100%;
    min-height: 400px;
    border-radius: 0 1rem 1rem 0;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-teal);
    padding: 0;
    z-index: 2;
    font-size: 1.2rem;
}

/* Sidebar Styles */
.sidebar {
    background: var(--color-gradient);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 4px 0 24px 0 rgba(31, 38, 135, 0.15);
    border-radius: 0 24px 24px 0;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 280px;
    padding: 1.5rem 0 0 0;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar.active {
    left: 0;
}

.sidebar-logo {
    padding: 1rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 1.5rem;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #412116;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #743902;
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(52, 123, 152, 0.10);
    transform: translateY(-2px) scale(1.03);
}

.sidebar-menu i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-user {
    padding: 1.5rem;
    background: var(--color-brown);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    border: 2.5px solid var(--color-eacc2c);
    box-shadow: 0 0 0 4px rgba(178, 215, 50, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    object-position: center;
}

.user-details h4,
.user-details p,
.user-action-btn {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.user-details h4 {
    color: var(--color-beige);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-details p {
    color: var(--color-eacc2c);
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-action-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--color-beige);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-action-btn:hover {
    color: #fff;
}

.user-action-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--color-teal);
    /* Màu teal nhạt */
    border-radius: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.main-content {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}
.max-with-50{
 max-width: 50px;
}
.max-width-200{
    max-width: 200px;
}
.main-content.shifted {
    margin-left: 280px;
}

.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
    color: white;
}

.hamburger-menu i.fa-times {
    color: white;
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.btn-beige {
    background-color: var(--color-beige);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-beige:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #fff;
}

.opacity-75 {
    opacity: 0.75;
}

/* Member Management Styles */
.nav-pills .nav-link {
    background: #ffffff;
    color: var(--color-teal) !important;
    font-weight: 600;
    transition: all 0.3s;
    font-size: var(--text-md);
    line-height: 1.5;
}

.nav-pills .nav-link i {
    color: var(--color-teal);
}

.nav-pills .nav-link.active, .nav-pills .nav-link:focus {
    background: var(--color-brown);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(52,123,152,0.10);
}

.nav-pills .nav-link.active i,
.nav-pills .nav-link:focus i {
    color: #fff;
}

.nav-pills .nav-link:hover:not(.active) {
    background: #ffffff;
    color: var(--color-brown) !important;
    
}

.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--color-teal);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 123, 152, 0.25);
    border-color: var(--color-teal);
}

.search-box .btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid var(--color-teal);
    padding: 10px 20px;
}

.member-card {
    background: #ffff;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(9, 40, 52, 0.10);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(9, 40, 52, 0.18);
}
.glass-card-house1 {
    background: #fff8ee;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-house1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 1;
}

.glass-card-house1:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    background: #ffe4c4;
}

.glass-card-house1 .card-icon-wrapper {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glass-card-house1 .card-icon-wrapper i {
    color: var(--color-ryb-green);
}


.glass-card-house1 .card-title {
    color: var(--color-maastricht);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.glass-card-house1 .stat-number {
    color: var(--color-ryb-green);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.glass-card-house1 .card-text {
    color: var(--color-teal);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.glass-card-house1 .btn-beige {
    background: linear-gradient(135deg, var(--color-ryb-green) 0%, var(--color-eacc2c) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-house1 .btn-beige::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glass-card-house1 .btn-beige:hover {
    transform: translateY(-2px);
    background: #e7a005;
    color: white;
}

.glass-card-house1 .btn-beige:hover::before {
    left: 100%;
}

.glass-card-house1 .btn-beige i {
    transition: transform 0.3s ease;
}

.glass-card-house1 .btn-beige:hover i {
    transform: translateX(4px);
}


.welcome-section .hero-content {
    position: relative;
    z-index: 2;
}

.welcome-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-ryb-green);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-section .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-teal);
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card animation delays */
.glass-card-house1:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.glass-card-house1:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.glass-card-house1:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.glass-card-house1:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.glass-card-house1 {
    animation: float 6s ease-in-out infinite;
}

.glass-card-house1:nth-child(2) {
    animation-delay: 1s;
}

.glass-card-house1:nth-child(3) {
    animation-delay: 2s;
}

.glass-card-house1:nth-child(4) {
    animation-delay: 3s;
}

/* Improved responsive design */
@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section .lead {
        font-size: 1rem;
    }
    
    .glass-card-house1 .stat-number {
        font-size: 2rem;
    }
    
    .glass-card-house1 .card-title {
        font-size: 1.1rem;
    }
}

.member-card .dropdown-menu {
    background: rgba(9, 40, 52, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.member-card .dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.member-card .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.member-card .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

.btn-outline-danger {
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: var(--color-danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

/* Tower Page Styles */
.tower-image {
  object-fit: cover;
  border: 2px solid var(--color-teal);
  transition: transform 0.3s ease;
}

.tower-image:hover {
  transform: scale(1.05);
}

.tower-title {
  font-size: var(--text-lg);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.tower-action-btn {
  background: #e7a005;
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.tower-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 123, 152, 0.2);
 background-color: #e7a005;
}

.tower-table {
  font-size: var(--text-md);
  line-height: 1.5;
}

.tower-table th {
  font-weight: 600;
  padding: 0.75rem 0;
  font-size: var(--text-md);
  line-height: 1.5;
}

.tower-table td {
  padding: 0.75rem 0;
  vertical-align: middle;
  font-size: var(--text-md);
  line-height: 1.5;
}

.tower-btn {
  background-color: rgba(0, 128, 128, 0.1);
  border: none;
  color: #008080;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.tower-btn:hover {
  background-color: rgba(0, 128, 128, 0.2);
  color: #008080;
}

.tower-btn.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.hover-teal {
  transition: color 0.3s ease;
}

.hover-teal:hover {
  color: var(--color-teal) !important;
}

.btn-teal-light {
  background: rgba(52, 123, 152, 0.1);
  color: var(--color-teal);
}

.btn-teal-light:hover {
  background: var(--color-ryb-green);
  color: white;
}

/* Profile Page Styles */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-teal);
    box-shadow: 0 0 20px rgba(52, 123, 152, 0.2);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-teal);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    background: var(--color-ryb-green);
    transform: scale(1.1);
}

.profile-name {
    color: var(--color-maastricht);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--color-teal);
    font-size: var(--text-md);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-action-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    font-size: var(--text-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(52, 123, 152, 0.1);
    border: 1px solid rgba(52, 123, 152, 0.2);
    color: var(--color-teal);
}

.profile-action-btn:hover {
    background: var(--color-teal);
    color: white;
    transform: translateY(-2px);
}

.profile-action-btn i {
    font-size: 1.1rem;
}

.profile-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.profile-info-card .card-title {
    color: var(--color-maastricht);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 123, 152, 0.2);
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item label {
    color: var(--color-teal);
    font-size: var(--text-md);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.info-item p {
    color: var(--color-maastricht);
    font-size: var(--text-md);
    margin: 0;
    padding: 0.5rem;
    background: rgba(52, 123, 152, 0.05);
    border-radius: 8px;
}

.form-label {
    color: var(--color-teal);
    font-size: var(--text-md);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(52, 123, 152, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--color-maastricht);
    font-size: var(--text-md);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.2rem rgba(52, 123, 152, 0.15);
    color: var(--color-maastricht);
}

.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(52, 123, 152, 0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--color-maastricht);
    font-size: var(--text-md);
    transition: all 0.3s ease;
}

.form-select:focus {
    background: white;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.2rem rgba(52, 123, 152, 0.15);
    color: var(--color-maastricht);
}

.btn-save {
    background: var(--var-color-save-modal1);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: var(--text-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 123, 152, 0.2);
    color: white;
}

.password-form .input-group {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(52, 123, 152, 0.2);
}

.password-form .input-group .form-control {
    border: none;
    background: transparent;
    color: var(--color-maastricht);
}

.password-form .input-group .btn {
    background: transparent;
    border: none;
    color: var(--color-teal);
    padding: 0.8rem 1rem;
}

.password-form .input-group .btn:hover {
    color: var(--color-ryb-green);
}

/* Modal Overlay */
.custom-modal .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 40, 52, 0.25); /* nhẹ hơn, phù hợp giao diện */
    z-index: 1050;
}

/* Modal Slide Right */
.custom-modal .modal-slide-right {
    position: fixed;
    top: 0;
    right: -600px;
    width: 900px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1060;
    box-shadow: -2px 0 24px 0 rgba(9, 40, 52, 0.12);
    transition: right 0.4s cubic-bezier(.77,0,.18,1);
    overflow-y: auto;
    border-radius: 16px 0 0 16px;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.custom-modal .modal-header-custom {
    padding: 28px 32px 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    border-radius: 16px 0 0 0;
}
.custom-modal .modal-header-custom h4 {
    margin: 0;
    font-weight: bold;
    color: var(--color-teal);
    font-size: 1.3rem;
}
.custom-modal #closeAddRoleModalBtn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-maastricht);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.custom-modal #closeAddRoleModalBtn:hover {
    color: var(--color-danger);
}

/* Modal Form */
.custom-modal .modal-form-custom {
    padding: 24px 32px 32px 32px;
    background: #fff;
    border-radius: 0 0 0 16px;
    flex: 1 1 auto;
}
.custom-modal .modal-form-custom label.form-label {
    color: var(--color-teal);
    font-weight: 600;
}
.custom-modal .modal-form-custom input.form-control {
    background: #f7fafd;
    border: 1px solid var(--color-teal);
    color: var(--color-maastricht);
}
.custom-modal .modal-form-custom input.form-control:focus {
    border-color: var(--color-ryb-green);
    background: #fff;
}
.custom-modal .modal-form-custom strong {
    color: var(--color-eacc2c);
    font-size: 1rem;
}
.custom-modal .modal-form-custom .fw-bold {
    color: var(--color-teal);
}
.custom-modal .modal-form-custom input[type="checkbox"] {
    accent-color: var(--color-brown);
    margin-right: 6px;
}
.custom-modal .modal-form-custom .d-flex .btn {
    min-width: 200px;
    min-height: 50px;
}

/* Nút lưu nổi bật, nút hủy nhẹ nhàng */
.btn-save-modal {
    background: var(--var-color-save-modal1);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 28px;
    box-shadow: 0 2px 8px rgba(52, 123, 152, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-save-modal:hover {
    background: var(--var-color-save-modal1);
    box-shadow: 0 4px 16px rgba(52, 123, 152, 0.18);
}

.btn-outline-secondary {
    border: 1px solid #d1d5db;
    color: var(--color-teal);
    background: #f7fafd;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 24px;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-secondary:hover {
    background: #e3f6f5;
    color: var(--color-ryb-green);
}

/* Modal Add Account - Avatar & Layout (nâng cấp sinh động) */
.custom-modal .avatar-section {
    text-align: center;
    padding-top: 12px;
    position: relative;
}
.custom-modal .avatar-frame {
    display: inline-block;
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}
.custom-modal .avatar-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--color-ryb-green);
    box-shadow: 0 4px 24px rgba(52, 123, 152, 0.13);
    background: #f7fafd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-modal .avatar-preview:hover {
    border-color: var(--color-teal);
    box-shadow: 0 8px 32px rgba(52, 123, 152, 0.18);
}
.custom-modal .avatar-icon-eye {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(52, 123, 152, 0.10);
    padding: 7px;
    font-size: 1.3rem;
    color: var(--color-teal);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.custom-modal .avatar-icon-eye:hover {
    background: var(--color-ryb-green);
    color: #fff;
}
.custom-modal .avatar-icon-upload {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(52, 123, 152, 0.10);
    padding: 7px;
    font-size: 1.2rem;
    color: var(--color-ryb-green);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.custom-modal .avatar-icon-upload:hover {
    background: var(--color-teal);
    color: #fff;
}
.custom-modal .custom-file-input {
    display: none;
}
.custom-modal .custom-file-label {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: var(--color-ryb-green);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    text-align: center;
    line-height: 38px;
    font-weight: 700;
    margin: 0 auto 0 0;
    box-shadow: 0 2px 8px rgba(52, 123, 152, 0.10);
    border: none;
    transition: background 0.2s;
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    z-index: 3;
}
.custom-modal .custom-file-label:hover {
    background: var(--color-teal);
}

/* Không border cho input file */
.custom-modal .modal-form-custom input[type="file"].form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Modal Add Account - Form Layout */
.custom-modal .modal-form-custom .row.g-4.align-items-start {
    margin-bottom: 0;
}
.custom-modal .modal-form-custom .col-md-4 {
    border-right: 1px solid #f0f0f0;
    padding-right: 18px;
}
.custom-modal .modal-form-custom .col-md-8 {
    padding-left: 24px;
}

/* Modal Add Account - Action Buttons */
.custom-modal .modal-form-custom .d-flex.justify-content-center.gap-4.mt-5 {
    margin-top: 2.5rem !important;
    gap: 2.5rem !important;
}
.custom-modal .modal-form-custom .btn.btn-outline-warning {
    border: 2px solid var(--color-ryb-green);
    color: var(--color-ryb-green);
    background: #fff;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.custom-modal .modal-form-custom .btn.btn-outline-warning:hover {
    background: var(--color-ryb-green);
    color: #fff;
}
.custom-modal .modal-form-custom .btn.btn-warning {
    background: var(--var-color-save-modal1);
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(52, 123, 152, 0.10);
    padding: 10px 38px;
    transition: background 0.2s, box-shadow 0.2s;
}
.custom-modal .modal-form-custom .btn.btn-warning:hover {
    background: var(--var-color-save-modal1);
    box-shadow: 0 4px 16px rgba(52, 123, 152, 0.18);
}

/* Centered Rectangle Modal for Add Version */
#addVersionModal .modal-slide-right {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: 95vw;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(9,40,52,0.18);
  padding: 0;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transition: none;
  height: auto;
  max-height: 95vh;
  overflow-y: auto;
}
#addVersionModal .modal-header-custom {
  padding: 24px 28px 12px 28px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 18px 18px 0 0;
}
#addVersionModal .modal-form-custom {
  padding: 24px 28px 28px 28px;
  background: #fff;
  border-radius: 0 0 18px 18px;
}
#addVersionModal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 40, 52, 0.25);
  z-index: 1050;
}

/* Restoration Card - Multi Version List */
.resto-versions {
  margin-top: 0.5rem;
}
.resto-version-item {
  font-size: 0.98rem;
  background: #f8f9fa;
  border: 1.5px solid var(--color-teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  padding: 0.4rem 0.8rem;
}
.resto-version-item:last-child {
  margin-bottom: 0;
}

.resto-group-select {
  min-width: 50px;
  font-size: 0.8rem;
  color: var(--color-teal);
  background: #f8f9fa;
  border-radius: 999px;
  border: 1.5px solid var(--color-teal);
  box-shadow: 0 2px 8px rgba(52,123,152,0.08);
  padding: 0.2rem 1.2rem 0.2rem 0.8rem;
  font-weight: 500;
  transition: border-color 0.2s;
}
.resto-group-select:focus {
  border-color: var(--color-ryb-green);
  outline: none;
}

.card-action-modal {
  display: none;
  position: fixed;
  min-width: 140px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(9,40,52,0.18);
  padding: 8px 0;
  z-index: 2000;
  animation: fadeInScale 0.18s cubic-bezier(.77,0,.18,1);
}
.card-action-item {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-teal);
  font-size: 1rem;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-align: left;
}
.card-action-item:hover, .card-action-item:focus {
  background: var(--color-beige);
  color: var(--color-ryb-green);
}
.card-action-item.text-danger {
  color: var(--color-danger);
}
.card-action-item.text-danger:hover {
  background: #ffeaea;
  color: var(--color-danger);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-footer-custom {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-footer-custom .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-footer-custom .btn-secondary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.modal-footer-custom .btn-secondary:hover {
    background: #e9ecef;
}

.modal-footer-custom .btn-danger {
    background: #dc3545;
    border: none;
    color: white;
}

.modal-footer-custom .btn-danger:hover {
    background: #c82333;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

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

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

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
}

.toast-notification.success i {
    color: #28a745;
}

.toast-notification.error i {
    color: #dc3545;
}

/* Card Delete Animation */
.card {
    transition: all 0.3s ease;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(9,40,52,0.18);
    z-index: 2001;
    width: 100%;
    max-width: 400px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: overlayFadeIn 0.3s ease;
}

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

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.card-select-mode .member-card {
    cursor: pointer;
    transition: box-shadow 0.2s, filter 0.2s;
}
.card-select-mode .member-card:hover {
    box-shadow: 0 0 0 3px var(--color-ryb-green);
    filter: brightness(0.98);
}
.member-card.card-selected {
    position: relative;
    box-shadow: 0 0 0 3px var(--color-danger);
    filter: grayscale(0.2) brightness(0.93);
}
.member-card.card-selected::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(220,53,69,0.18);
    border-radius: 15px;
    z-index: 2;
    pointer-events: none;
}
.member-card.card-selected::before {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.7rem;
    color: var(--color-danger);
    z-index: 3;
    font-weight: bold;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220,53,69,0.08);
}

/* Support Page Styles */
.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-card-infortower {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-teal);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(52, 123, 152, 0.2);
}



.btn-teal-light {
    background: rgba(52, 123, 152, 0.1);
    color: var(--color-teal);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-teal-light:hover {
    background: var(--color-ryb-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 123, 152, 0.2);
}

.form-control {
    background: white;
    border: 1px solid rgba(52, 123, 152, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.2rem rgba(52, 123, 152, 0.15);
}

.form-label {
    color: var(--color-teal);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Version Management Styles */
.stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-card-infortower {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--color-teal);
    border-bottom: 2px solid rgba(52, 123, 152, 0.1);
}

.table td {
    vertical-align: middle;
}

.badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

.btn-group .btn {
    padding: 0.5rem;
}

.btn-group .btn:not(:last-child) {
    margin-right: 0.25rem;
}

.pagination .page-link {
    color: var(--color-teal);
    border-color: rgba(52, 123, 152, 0.2);
    padding: 0.5rem 1rem;
}

.pagination .page-item.active .page-link {
    background-color: #fff;
    border-color: var(--color-teal);
}

.pagination .page-link:hover {
    background-color: rgba(52, 123, 152, 0.1);
    color: var(--color-teal);
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
}

.form-select {
    background-color: white;
    border: 1px solid rgba(52, 123, 152, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--color-maastricht);
    font-size: var(--text-md);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.2rem rgba(52, 123, 152, 0.15);
}

.btn-close:focus {
    box-shadow: none;
}

/* Document links styles */
.document-link {
  color: #008080;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgba(0, 128, 128, 0.05);
  border: 1px solid transparent;
}

.document-link:hover {
  background-color: rgba(0, 128, 128, 0.1);
  color: #006666;
}

.document-link i {
  margin-right: 0.25rem;
}

/* File type specific styles */
.pdf-file {
  border-color: #dc3545;
}

.pdf-file i {
  color: #dc3545;
}

.doc-file {
  border-color: #0d6efd;
}

.doc-file i {
  color: #0d6efd;
}

.xls-file {
  border-color: #198754;
}

.xls-file i {
  color: #198754;
}

.download-btn {
  padding: 0.15rem 0.3rem;
  font-size: 0.75rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.document-link:hover .download-btn {
  opacity: 1;
}

/* QR code button specific styles */
.qr-btn {
  background-color: rgba(0, 128, 128, 0.1);
  border: none;
  color: #008080;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-btn:hover {
  background-color: rgba(0, 128, 128, 0.2);
  transform: scale(1.05);
}

.qr-btn i {
  font-size: 1.1rem;
}

.upload-3d-area {
  background: #f8fafc;
  border: 2px dashed #0d6efd;
  transition: border-color 0.3s, background 0.3s;
}
.upload-3d-area.dragover {
  border-color: #198754;
  background: #e9f7ef;
}
#list3dFiles .file-item {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #333;
}

