/* Fix white background on mobile */
html,
body {
  background-color: #13181E !important;
  min-height: 100vh !important;
  height: 100%;
}

.app-container,
.app-main,
.app-main__outer,
.app-theme-white.app-container {
  background-color: #13181E !important;
  min-height: 100vh !important;
}

.app-theme-white .app-main {
  background-color: #13181E !important;
  min-height: 100vh !important;
}

/* Ensure app-main specifically has dark background */
div.app-main {
  background-color: #13181E !important;
}

:root {
  /* Base background */
  --color-bg: #13181E;

  /* Card components */
  --color-surface: #1A1F26;     /* Card body */
  --color-panel: #21272f;       /* Card header */
  --color-border: #2a2f36;

  /* Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #c0c4cc;
  --color-text-muted: #7c848d;

  /* Accent */
  --color-primary: #10a37f;
  --color-primary-hover: #0e8d6a;
}

.bg-card-header {
  background-color: var(--color-panel);
  border-bottom: 1px solid var(--color-border);
}

.bg-card-body {
  background-color: var(--color-surface);
}

.color-text-primary {
  color: var(--color-text-primary);
}

.color-text-secondary {
  color: var(--color-text-secondary);
}

.color-text-muted {
  color: var(--color-text-muted);
}


.text-gold {
    color: #FFAD49!important;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    --c:no-repeat linear-gradient(#f88800 0 0);
    background: var(--c),var(--c),transparent;
    background-size: 60% 100%;
    animation: l16 3s infinite;
    z-index: 9999; /* Ensure it's on top of other content */
  }
  
  .loading-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px 0;
  }
  
  .loading-loader .loading-text {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 4px #f88800;
    letter-spacing: 2px;
  }
  
  @keyframes l16 {
    0%   {background-position:-150% 0,-150% 0}
    66%  {background-position: 250% 0,-150% 0}
    100% {background-position: 250% 0, 250% 0}
  }

  /* Custom Modal Styles - Matching Website Theme */
.custom-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.custom-modal.show {
	opacity: 1;
}

.custom-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(19, 24, 30, 0.85);
	backdrop-filter: blur(8px);
}

.custom-modal-content {
	position: relative;
	background: #13181E;
	border: 1px solid #2a2f36;
	border-radius: 0.375rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(23, 26, 33, 0.5);
	max-width: 900px;
	width: 90%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		transform: translateY(-50px) scale(0.95);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.custom-modal-header {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #2a2f36;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #21272f;
	border-radius: 0.375rem 0.375rem 0 0;
}

.custom-modal-title {
	margin: 0;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.custom-modal-close {
	background: transparent;
	border: none;
	color: #c0c4cc;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.custom-modal-close:hover {
	/* background: rgba(255, 173, 73, 0.15); */
	color: #FFAD49;
	transform: rotate(90deg);
}

.custom-modal-body {
	padding: 1.5rem;
	overflow-y: auto;
	flex: 1;
	background: #1A1F26;
}

.custom-modal-body::-webkit-scrollbar {
	width: 0.8em;
}

.custom-modal-body::-webkit-scrollbar-track {
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background: #13181E;
}

.custom-modal-body::-webkit-scrollbar-thumb {
	background-image: radial-gradient(circle 248px at center, #16d9e3 0%, #30c7ec 47%, #46aef7 100%);
	border-radius: 25px;
	border: 1px solid #46aef7;
}

.custom-modal-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid #2a2f36;
	display: flex;
	justify-content: flex-end;
	background: #21272f;
	border-radius: 0 0 0.375rem 0.375rem;
}

/* Table styling to match theme */
.custom-modal .table {
	margin-bottom: 0;
	color: #ffffff;
	border-color: #2a2f36;
}

.custom-modal .table thead th {
	background: #FFAD49;
	color: #000;
	border-color: #2a2f36;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	padding: 0.875rem 0.75rem;
}

.custom-modal .table tbody tr {
	background: #1A1F26;
	border-color: #2a2f36;
	transition: all 0.2s ease;
}

.custom-modal .table tbody tr:hover {
	background-color: rgba(70, 174, 247, 0.12) !important;
	cursor: pointer;
}

.custom-modal .table tbody td {
	border-color: #2a2f36;
	color: #c0c4cc;
	padding: 0.875rem 0.75rem;
}

.custom-modal .badge {
	padding: 0.5em 0.75em;
	font-weight: 600;
	border-radius: 0.25rem;
}

/* Update alert styling */
.custom-modal .alert-info {
	background: rgba(70, 174, 247, 0.1) !important;
	border: 1px solid rgba(70, 174, 247, 0.3) !important;
	color: #c0c4cc;
}

.custom-modal .alert-info strong {
	color: #46aef7;
}

/* Button styling */
.custom-modal .btn-secondary {
	background: #2c323f;
	border-color: #2a2f36;
	color: #ffffff;
	transition: all 0.2s ease;
}

.custom-modal .btn-secondary:hover {
	background: #FFAD49;
	border-color: #FFAD49;
	color: #13181E;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 173, 73, 0.3);
}

/* Rare Drop Effects for Draw History */
.epic-drop {
	position: relative;
	animation: epicGlow 2s ease-in-out infinite;
	border-left: 3px solid #46aef7 !important;
	background: linear-gradient(90deg, rgba(70, 174, 247, 0.15) 0%, transparent 100%) !important;
}

.legendary-drop {
	position: relative;
	animation: legendaryGlow 2s ease-in-out infinite;
	border-left: 3px solid #FFAD49 !important;
	background: linear-gradient(90deg, rgba(255, 173, 73, 0.2) 0%, transparent 100%) !important;
}

@keyframes epicGlow {
	0%, 100% {
		box-shadow: 0 0 5px rgba(70, 174, 247, 0.3), 
		            inset 0 0 10px rgba(70, 174, 247, 0.1);
		border-left-color: #46aef7;
	}
	50% {
		box-shadow: 0 0 20px rgba(70, 174, 247, 0.6), 
		            inset 0 0 20px rgba(70, 174, 247, 0.2);
		border-left-color: #30c7ec;
	}
}

@keyframes legendaryGlow {
	0%, 100% {
		box-shadow: 0 0 8px rgba(255, 173, 73, 0.4), 
		            inset 0 0 15px rgba(255, 173, 73, 0.15);
		border-left-color: #FFAD49;
	}
	50% {
		box-shadow: 0 0 25px rgba(255, 173, 73, 0.8), 
		            inset 0 0 25px rgba(255, 173, 73, 0.3);
		border-left-color: #ffc266;
	}
}

/* .epic-drop:hover,
.legendary-drop:hover {
	transform: translateX(3px);
	transition: transform 0.2s ease;
} */

/* Responsive */
@media (max-width: 768px) {
	.custom-modal-content {
		width: 95%;
		max-height: 90vh;
	}
	
	.custom-modal-body {
		padding: 1rem;
	}
	
	.custom-modal-header,
	.custom-modal-footer {
		padding: 1rem;
	}
}
