/* --------------------------------*/
:host {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
}

.layout-footer-navigation,
.layout-footer {
  flex-shrink: 0;
}
/*  ------------------logo -------*/
.logo-upload-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }
  
  .logo-plus {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .logo-plus:hover {
    transform: scale(1.05);
  }
  
  .hidden {
    display: none;
  }

  /* ----------- Fonts -------------- */
  .small-text {
    font-size: 0.875rem; /* or 14px, or any size you prefer */
  }

  .white-text-with-blue-shadow {
    text-shadow:
      1px 1px 2px black,
      0 0 0.2em blue,
      0 0 0.2em blue; 
    color: white;
  }
  /* ------------ Cards ---------------- */
  .card-container{
    margin: 0 auto;
    padding: 1rem;
    /* min-height: 100vh; */
    /* padding-top: 1rem; */
  }

  .cardw{
    width: 400px;
    height: 300px;
  }

  .parent-card {
    background: var(--surface-border) !important; /* or a custom color like #22304a  var(--surface-ground) */
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }

  /* -------------- Coupons ------------- */
  .coupon-scroll-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    -ms-overflow-style: none;
  }
  
  .coupon-scroll-container::-webkit-scrollbar {
    height: 6px;
  }
  
  .coupon-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
  
  .coupon-cards-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 4px 2px;
    min-width: min-content;
  }
  
  .coupon-card {
    flex: 0 0 auto;
    width: 160px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .coupon-image {
    height: 80px;
    overflow: hidden;
  }
  
  .coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .coupon-details {
    padding: 8px;
  }
  
  .coupon-name {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .coupon-discount {
    font-size: 0.8rem;
    color: #e91e63;
    margin-top: 4px;
  }
  
  .coupon-validity {
    font-size: 0.7rem;
    color: #666;
    margin-top: 4px;
  }
  
  .no-coupons {
    padding: 12px;
    text-align: center;
    color: #666;
    font-style: italic;
  }

  /* -------------- Avatars ------------- */
  .avatar-overlay {
    position: absolute;
    left:10px;
    /* bottom: 12px; */
    /* right: 12px; */
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: white; /* Fallback for transparent logos */
  }
  
  .avatar-overlay-bottomleft {
    position: absolute;
    bottom: 12px;
    left:5px;
    /* right: 12px; */
    width: 50px; 
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;   /* ez levágja a képet, ha nem fér bele */
    border-radius: 10%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: white; /* Fallback for transparent logos */
  }

  .avatar-overlay-topleft {
    position: absolute;
    top: -5px;
    width: 40px; 
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;   /* ez levágja a képet, ha nem fér bele */
    border-radius: 10%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: white; /* Fallback for transparent logos */
  }

  .avatar-overlay-rb {
    position: absolute;
    bottom: 12px;
    right: 12px;
    border-radius: 10%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .img_container-fixed {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 200px;
    border-radius: 3%;
    overflow: hidden;
  }
  
  .img_container-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    min-width: 100%;
    min-height: 100%;
  }

  .image-preview {
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .image-preview_2 {
    max-width: 150px;
    height:auto;
    /* max-height: 100%; */
  }
  
  .logo-preview{
    max-width: 50px;
    max-height: 50px;
  }
/* ----------base cards ------------- */
.basecards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
}

.base-card {
    flex: 0 0 300px;
    margin-bottom: 1rem;
}

.base-card ::ng-deep .p-card {
    height: 100%;
}

.base-card ::ng-deep .p-card-body {
    padding: 0;
}

.base-card ::ng-deep .p-card-content {
    padding: 1rem;
}

/* --- detailed card panel with logo */
.detailed-card-logo {
    display: flex;
    max-width: 400px;
    margin: auto;
    padding-left: 1rem;
}

/*   -- TAB component --*/
.tab-container {
  position: relative;
  overflow: hidden;
}

:host ::ng-deep .p-tabview-panels {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(100vh - 200px); /* állítsd be a kívánt magasságot */
}

:host ::ng-deep .p-tabview .p-tabview-nav li .p-tabview-nav-link {
  font-size: 2.2rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
}

/* If you need more spacing between tabs */
:host ::ng-deep .p-tabview .p-tabview-nav li {
  margin-right: 0.25rem;
}

/* ------  p_table -------*/
.p-datatable .p-datatable-tbody > tr > td {
  text-align: left;
  border: 1px solid #dee2e6;
  border-width: 0 0 1px 0;
  padding: 0.5rem 0.5rem;
}

:host ::ng-deep .action-button {
  width: 2rem !important;
  height: 2rem !important;
  padding: 0 !important;
}

:host ::ng-deep .action-button .p-button-icon {
  font-size: 0.875rem;
}

/*  -----    treee control for reservation -----*/
:host ::ng-deep {
  .reservation-status {
      padding: .25rem .5rem;
      border-radius: 4px;
      font-weight: bold;
      
      &.status-pending {
          background-color: var(--yellow-100);
          color: var(--yellow-900);
      }
      
      &.status-confirmed {
          background-color: var(--green-100);
          color: var(--green-900);
      }
      
      &.status-cancelled {
          background-color: var(--red-100);
          color: var(--red-900);
      }
      
      &.status-group {
          background-color: var(--blue-100);
          color: var(--blue-900);
      }
  }
}

/* ------- top bar notification style ----------  */
/* Add these styles to your component CSS or global styles */

.topbar-notifications {
  position: relative;
}

.notification-container {
  padding: 0;
}

.notification-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface-200);
}

.notification-list {
  padding: 0.5rem;
}

.notification-item {
  transition: background-color 0.2s;
  border: 1px solid var(--surface-200);
  margin-bottom: 0.5rem;
}

.notification-item:hover {
  background-color: var(--surface-100);
}

.notification-item:last-child {
  margin-bottom: 0;
}

/* Unread notification style */
.notification-item.unread {
  border-left: 3px solid var(--primary-color);
}

/* Notification types */
.notification-icon.info {
  color: var(--blue-500);
}

.notification-icon.success {
  color: var(--green-500);
}

.notification-icon.warning {
  color: var(--yellow-500);
}

.notification-icon.error {
  color: var(--red-500);
}

.notification-icon.invitation {
  color: var(--primary-color);
}

/* Badge animation */
:host ::ng-deep .p-badge {
  transition: transform 0.2s;
}

:host ::ng-deep .p-badge.wiggle {
  animation: wiggle 1s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(5deg); }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .card-container,
  .card-content,
  .p-card,
  .card {
    min-height: auto;
 
   /* padding-top: 1rem;  Add space at the top to prevent content from sliding under the topbar
    margin-top: 1rem; */
  }
  
  /* General class that can be added to any container to prevent sliding up */
  .mobile-safe-container {
    padding-top: 3rem;
    margin-top: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .basecards-container {
      justify-content: center;
  }
  
  .card-container {
    padding: 0rem;
  }

  .topbar-menubutton {
    margin-left: 1rem;
  }


  .base-card {
      flex: 0 0 100%;
      max-width: 100%;
  }
  
  .detailed-card-logo {
      padding-left: 1rem;
  }

  .main-content {
    padding-bottom: 70px;
    padding-top: 1rem; /* Add space at the top */
  }
}



@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile navigation menu for hamburger menu 
.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  padding: 1rem 0;
}

.mobile-nav-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.mobile-nav-menu a:hover {
  background: #f0f0f0;
  color: #007bff;
}
*/
/* Hide mobile menu on large screens 
@media (min-width: 992px) {
  .mobile-nav-menu {
    display: none !important;
  }
}*/
/* --- Hamburger menu mobile styles fix ---
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  width: 200px;
  z-index: 1000;
}
 */