.modal {
  z-index: 1060;
}

@media screen and (max-width: 548px) {
  .custom-modal .glass-card,
  .custom-modal .modal-content {
    padding: 2rem 1.5rem !important;
    width: 100% !important;
    margin: auto 0 !important;
  }
}

.custom-modal .glass-card,
.custom-modal .modal-content {
  background: var(--color-white);
  border-radius: 3px;
  padding: 3rem;
  box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.15);
  border: none;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal .modal-content h1,
.custom-modal .modal-content h2,
.custom-modal .modal-content h3,
.custom-modal .modal-content h4,
.custom-modal .modal-content h5,
.custom-modal .modal-content h6 {
  color: var(--color-text-main) !important;
  font-weight: 800 !important;
}

.custom-modal .modal-content .form-label,
.custom-modal .modal-content label {
  color: var(--color-slate-600) !important;
  font-weight: 600 !important;
}

.custom-modal .modal-content .catalog-modal-subtitle,
.custom-modal .modal-content .text-muted,
.custom-modal .modal-content p,
.custom-modal .modal-content span:not(.fa):not([class*="fa-"]) {
  color: var(--color-text-muted) !important;
}

.custom-modal .modal-content a {
  color: var(--primary-color) !important;
  text-decoration: none;
  font-weight: 600;
}

.custom-modal .modal-content a:hover {
  color: var(--primary-hover) !important;
  text-decoration: underline;
}

.custom-modal .modal-content .form-control::placeholder {
  color: var(--color-text-muted);
}

.custom-modal.active .auth-card,
.custom-modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
  animation: modalCardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-modal .modal-content.auth-card {
  background: var(--color-bg-card, var(--color-white));
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalCardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.modal-content,
.card-lavdin,
.card-premium {
  border-radius: var(--radius-lg);
}

.modal-backdrop {
  z-index: 2040 !important;
}

.modal {
  z-index: 2050 !important;
}

.modal:not(.show):not(.active),
.custom-modal:not(.active),
.search-engine-overlay:not(.active),
.pm-lightbox:not(.active),
.event-side-card:not(.active):not(.draft-toast .event-side-card),
.draft-toast:not(.show) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px);
  transition: opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
}

.modal.show,
.modal.active {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  display: block !important;
}

@media (min-width: 992px) {
  body.admin-dashboard-body:not(.tenant-page) .modal {
    padding-left: var(--ld-sidebar-width, var(--sidebar-width, 280px)) !important;
  }
}

.dark-theme .table {
  color: var(--dark-text-main) !important;
  border-color: var(--dark-border) !important;
}

.dark-theme .table td,
.dark-theme .table th,
.dark-theme .table thead,
.dark-theme .table tr {
  background-color: transparent !important;
  border-color: var(--dark-border) !important;
  color: inherit !important;
}

.dark-theme .table thead.bg-light,
.dark-theme .table thead tr {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.dark-theme .table-hover tbody tr:hover {
  background-color: var(--dark-hover);
}

/* 
  Lavdin Footer Component
  ─────────────────────────────────────────────
  Extracted from core/components/footer.php
*/

@media (max-width: 991px) {
    .responsive-footer {
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) {
    .responsive-footer.with-sidebar {
        margin-left: var(--sidebar-w) !important;
    }
}

/* Elegant Theme Footer Overrides */
.theme-elegant-footer .text-muted {
    color: var(--color-text-muted) !important;
}

.theme-elegant-footer .text-main {
    color: var(--color-text-light) !important;
}

.theme-elegant-footer a.text-muted:hover {
    color: var(--color-primary) !important;
}

.theme-elegant-footer .border-top {
    border-color: var(--color-border-light) !important;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.03);
}

.theme-elegant-footer .footer-social-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted) !important;
}

.footer-social-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white) !important;
    transform: translateY(-2px);
}

/*
 * Team Component Styles
 */

.team-card-reborn {
    transition: var(--transition-normal);
}

.team-card-reborn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-avatar-wrap {
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-bg-card);
}

/* Gallery Lightbox */
.pm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pm-lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pm-lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pm-lb-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.pm-lb-close, .pm-lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.pm-lb-close:hover, .pm-lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pm-lb-close {
    top: -60px;
    right: 0;
}

.pm-lb-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.pm-lb-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.pm-lb-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.pm-lb-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .pm-lb-close {
        top: 10px;
        right: 10px;
    }
    .pm-lb-prev {
        left: 10px;
    }
    .pm-lb-next {
        right: 10px;
    }
}

