/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.select2-selection__rendered {
  padding-left: 0 !important;
}

.select2-selection__choice {
  flex-direction: row-reverse !important;
  align-items: center !important;
  margin-left: 2px !important;
  margin-bottom: 2px !important;
  padding: .1em .5em !important;
  font-size: 0.8rem !important;
}

.select2-selection__rendered li.select2-search--inline:not(:only-child){
  display: none !important;
}

/* Custom styles to force the input boxes to be square and center aligned */
.digit-input {
    width: 3rem; /* Fixed width */
    height: 3rem; /* Fixed height for a square shape */
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 0.5rem; /* Smoother corners */
    border: 2px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.digit-input:focus {
    border-color: #0d6efd; /* Primary color on focus */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Hide the default number input controls (arrows) */
.digit-input::-webkit-outer-spin-button,
.digit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.digit-input[type=number] {
    -moz-appearance: textfield;
}

.select2-container--bootstrap-5 .select2-selection__clear {
  left: auto !important;
  right: 0.75rem !important;
}

.selected-row { 
  background-color: rgba(13, 110, 253, 0.05) !important; 
}
.action-bar { 
  display: none; 
  margin: 1rem 0; 
}

.btn-create-team { 
  border: 2px dashed #dee2e6; 
  background: transparent; transition: all 0.3s ease; 
}
.btn-create-team:hover { 
  border-color: #2596be; 
  background: rgba(25, 135, 84, 0.05); 
  color: #2596be; 
}
.user-badge { 
  background: #e9ecef; 
  border-radius: 20px; 
  padding: 0.5rem 1rem; 
  display: inline-flex; 
  align-items: center; 
  margin: 0.25rem; 
}
        
/* Credit Card Styling */
.card-grid-container { padding: 1.5rem; }
.credit-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    color: white;
    transition: all 0.3s ease;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
}
.credit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    color: white;
}
.card-blocked { background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%); opacity: 0.9; }

.chip { width: 40px; height: 30px; background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); border-radius: 4px; margin-bottom: 1rem; position: relative; }
.chip::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(0,0,0,0.1); }

.card-number-display { font-family: 'Courier New', Courier, monospace; font-size: 1.25rem; letter-spacing: 2px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.card-holder { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 1px; }
.card-brand { font-style: italic; font-weight: bold; font-size: 1.1rem; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-success { 
  background-color: #10b981; 
  box-shadow: 0 0 8px #10b981; 
}
.dot-warning { 
  background-color: #e4ef44; 
}
.dot-danger { 
  background-color: #ef4444; 
}

.action-overlay {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}