/* Custom CSS for Haro 2026 Admin Dashboard */

/* News Cards Full Page */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    max-width: 100%;
}

/* News Demo Card */
.news-demo-card {
    width: 75%;
    margin: 2rem auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, .3);
    position: relative;
}

.news-demo-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: inherit;
    z-index: 0;
}

.news-demo-card-content {
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.news-card-full {
    display: block;
    width: 100%;
    height: 6.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, .3);
    position: relative;
    overflow: hidden;
    margin: 0.25rem;
}

.news-card-full::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    z-index: 0;
}

.news-card-full:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.news-card-full-content {
    padding: 0;
    position: relative;
    z-index: 1;
    height: 100%;
}

.news-card-title {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    max-width: calc(100% - 8rem);
    line-height: 1.2;
}

.news-card-author {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.news-card-date-time {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 2;
    text-align: right;
}

.news-card-full-badge {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 3;
}

.news-empty-message {
    text-align: center;
    padding: 3rem 0;
}

/* Custom CSS for Haro 2026 Admin Dashboard */

/* War of Emperium Widget Background */
.card:has(.card-title:contains("War of Emperium")) {
	background-image: url('../../images/widgets/woe/background.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

/* Alternative selector for better browser compatibility */
.woe-widget-card {
	background-image: url('../../images/widgets/woe/background.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

/* Add overlay to darken the background image */
.woe-widget-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
}

/* Ensure content is above the overlay */
.woe-widget-card .card-header,
.woe-widget-card .card-body {
	position: relative;
	z-index: 1;
}

/* War of Emperium Widget - Admin Style (similar to public page) */
.woe-castles-list-admin {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.woe-castle-single-admin {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	min-height: 380px;
	padding: 3rem 1rem 0.5rem 1rem;
}

.woe-castle-item-admin {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0.5rem;
}

.woe-castle-flag-admin {
	position: relative;
	width: 160px;
	height: 230px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.woe-flag-img-admin {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
	image-rendering: -moz-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.woe-castle-emblem-admin {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.woe-emblem-img-admin {
	display: block;
	width: 64px;
	height: 64px;
	image-rendering: -moz-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	border-radius: 4px;
}

.woe-emblem-placeholder-admin {
	width: 64px;
	height: 64px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.25rem;
}

.woe-castle-info-admin {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, 6%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-top: -0.75rem;
}

.woe-castle-name-admin {
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 1px 2px rgba(0, 0, 0, 0.8);
	margin-bottom: 0.05rem;
	line-height: 1;
}

.woe-castle-guild-admin {
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Roboto', sans-serif;
	font-size: 0.875rem;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 1px 2px rgba(0, 0, 0, 0.8);
	line-height: 1.2;
}

/* Compte à rebours WoE */
.woe-countdown-admin {
	margin-top: 1.5rem;
	text-align: center;
	position: relative;
	z-index: 1;
}

.woe-countdown-label {
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Roboto', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	margin-bottom: 0.5rem;
}

.woe-countdown-timer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.woe-countdown-values {
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 1px 2px rgba(0, 0, 0, 0.8);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	justify-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 300px;
}

.woe-countdown-group {
	display: inline-flex;
	gap: 0.1rem;
}

.woe-countdown-digit {
	display: inline-block;
	min-width: 1ch;
	text-align: center;
	position: relative;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.woe-countdown-digit.woe-countdown-animate {
	animation: woeCountdownFlip 0.3s ease;
}

@keyframes woeCountdownFlip {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	50% {
		transform: translateY(-10px);
		opacity: 0;
	}
	51% {
		transform: translateY(10px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Event Widget Countdown Animation */
.countdown-value-group {
	display: inline-flex;
	gap: 0.1rem;
}

.countdown-digit {
	display: inline-block;
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	text-align: center;
	position: relative;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.countdown-digit.countdown-animate {
	animation: woeCountdownFlip 0.3s ease;
}

.woe-countdown-labels {
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Roboto', sans-serif;
	font-size: 0.7rem;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	justify-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 300px;
}

.woe-countdown-labels span {
	display: inline-block;
	min-width: 2ch;
	text-align: center;
}

/* Force left alignment for users table */
#usersTable thead th,
#usersTable tbody td {
	text-align: left !important;
}

#usersTable tbody td .d-flex {
	justify-content: flex-start !important;
}

/* Account details page styles */
.w-150 {
	width: 150px;
	min-width: 150px;
}

/* Server Uptime Styles */
.server-uptime {
	font-size: 0.875rem;
}

.uptime-timer {
	color: #b794f6; /* Violet clair pour dark mode */
	font-weight: 500;
	display: inline-flex;
	align-items: center;
}

.uptime-label {
	margin-right: 0.5rem;
	opacity: 0.8;
}

.uptime-value {
	/* Chiffres à largeur fixe pour éviter les déplacements */
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
	font-weight: 600;
	display: inline-block;
	min-width: 100px;
	text-align: left;
}

/* Force hiding of inactive tab-panes */
#characterDetailsTabContent .tab-pane:not(.show):not(.active) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

#characterDetailsTabContent .tab-pane.show.active {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	overflow: visible !important;
}

/* S'assurer que le contenu des tab-pane cachés est également caché */
#characterDetailsTabContent .tab-pane:not(.show):not(.active) * {
	display: none !important;
	visibility: hidden !important;
}

/* Cacher la section Mouvements par défaut, elle sera affichée uniquement dans l'onglet guild-storage */
#guild-storage-movements {
	display: none !important;
}

/* Afficher la section Mouvements uniquement dans l'onglet guild-storage */
#guild-storage.show.active #guild-storage-movements {
	display: block !important;
}

/* Dégradés pour les logs du Guild Storage - uniquement sur la colonne Quantité */
td.quantity-deposit {
	background: linear-gradient(to left, rgba(0, 100, 0, 0.4) 0%, rgba(0, 100, 0, 0.25) 25%, rgba(0, 100, 0, 0.15) 50%, rgba(0, 100, 0, 0.05) 75%, transparent 100%) !important;
	background-color: transparent !important;
}

td.quantity-withdrawal {
	background: linear-gradient(to left, rgba(139, 0, 0, 0.4) 0%, rgba(139, 0, 0, 0.25) 25%, rgba(139, 0, 0, 0.15) 50%, rgba(139, 0, 0, 0.05) 75%, transparent 100%) !important;
	background-color: transparent !important;
}

/* Styles pour les liens dans les titres d'articles */
.news-article-card-header h2 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-article-card-header h2 a:hover {
	color: #8b5cf6;
}

/* Styles pour le contenu des articles de news */
.news-article-content {
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Roboto', sans-serif;
	font-size: 0.875rem;
	line-height: 1.6;
	margin-top: 1rem;
}

.news-article-content p {
	margin: 0 0 1rem 0;
}

.news-article-content p:last-child {
	margin-bottom: 0;
}

.news-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1rem 0;
}

.news-article-content a {
	color: #8b5cf6;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-article-content a:hover {
	color: #a78bfa;
	text-decoration: underline;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
	color: rgba(255, 255, 255, 0.95);
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.news-article-content ul,
.news-article-content ol {
	margin: 1rem 0;
	padding-left: 2rem;
}

.news-article-content li {
	margin: 0.5rem 0;
}

.news-article-content blockquote {
	border-left: 3px solid #8b5cf6;
	padding-left: 1rem;
	margin: 1rem 0;
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
}

.news-article-content code {
	background-color: rgba(0, 0, 0, 0.3);
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 0.85em;
}

.news-article-content pre {
	background-color: rgba(0, 0, 0, 0.3);
	padding: 1rem;
	border-radius: 4px;
	overflow-x: auto;
	margin: 1rem 0;
}

.news-article-content pre code {
	background-color: transparent;
	padding: 0;
}

/* Styles pour la pagination désactivée */
.pagination-link.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-link.disabled:hover {
	background-color: transparent;
}

/* Styles pour la page de détail d'une news */
.news-detail-article {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
	text-align: center;
}

.news-detail-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	margin: 2rem 0 2rem 0;
	font-family: 'Roboto', sans-serif;
	line-height: 1.2;
}

.news-detail-avatar {
	display: flex;
	justify-content: center;
	margin: 2rem 0;
}

.news-detail-avatar img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-detail-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 2rem 0;
	font-family: 'Roboto', sans-serif;
}

.news-detail-meta .news-badge {
	position: static;
	display: inline-block;
}

.news-detail-author {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.875rem;
	font-weight: 500;
}

.news-detail-date {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
}

.news-detail-content {
	text-align: center;
	margin-top: 3rem;
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	line-height: 1.8;
}

.news-detail-content p {
	margin: 0 0 1.5rem 0;
	text-align: center;
}

.news-detail-content p:last-child {
	margin-bottom: 0;
}

.news-detail-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 2rem 0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-detail-content a {
	color: #8b5cf6;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-detail-content a:hover {
	color: #a78bfa;
	text-decoration: underline;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
	color: rgba(255, 255, 255, 0.95);
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.news-detail-content h1 {
	font-size: 2rem;
}

.news-detail-content h2 {
	font-size: 1.75rem;
}

.news-detail-content h3 {
	font-size: 1.5rem;
}

.news-detail-content h4 {
	font-size: 1.25rem;
}

.news-detail-content h5,
.news-detail-content h6 {
	font-size: 1.125rem;
}

.news-detail-content ul,
.news-detail-content ol {
	margin: 1.5rem auto;
	padding-left: 2rem;
	display: inline-block;
	text-align: left;
}

.news-detail-content li {
	margin: 0.75rem 0;
}

.news-detail-content blockquote {
	border-left: 4px solid #8b5cf6;
	padding-left: 1.5rem;
	margin: 2rem 0;
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
	background-color: rgba(139, 92, 246, 0.1);
	padding: 1rem 1.5rem;
	border-radius: 4px;
}

.news-detail-content code {
	background-color: rgba(0, 0, 0, 0.3);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	color: #a78bfa;
}

.news-detail-content pre {
	background-color: rgba(0, 0, 0, 0.4);
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 2rem 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-detail-content pre code {
	background-color: transparent;
	padding: 0;
	color: rgba(255, 255, 255, 0.9);
}

.news-detail-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 2rem auto;
	text-align: left;
}

.news-detail-content table th,
.news-detail-content table td {
	padding: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
}

.news-detail-content table th {
	background-color: rgba(139, 92, 246, 0.2);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
}

.news-detail-content table td {
	color: rgba(255, 255, 255, 0.8);
}

.news-detail-content hr {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 2rem 0;
}

/* ============================================
   Page de Maintenance
   ============================================ */

/* Reset pour la page de maintenance */
html.maintenance-page,
html.maintenance-page body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body.maintenance-page {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: #1a1a1a;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	overflow: hidden;
	position: relative;
}

/* Image de fond avec opacité réduite */
body.maintenance-page::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url('../../images/maint-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	opacity: 0.25;
	z-index: 0;
	margin: 0;
	padding: 0;
}

/* Dégradé du bas vers le haut */
body.maintenance-page::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: linear-gradient(to top, #1a1a1a 0%, rgba(23, 25, 38, 0.9) 25%, rgba(32, 49, 60, 0.7) 50%, rgba(26, 26, 26, 0.4) 75%, transparent 100%);
	z-index: 1;
	margin: 0;
	padding: 0;
}

/* Particules animées en arrière-plan */
.maintenance-page .particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
}

.maintenance-page .particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: rgba(0, 116, 224, 0.5);
	border-radius: 50%;
	animation: float 20s infinite ease-in-out;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0) translateX(0);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-100vh) translateX(100px);
		opacity: 0;
	}
}

.maintenance-page .container {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2rem;
	max-width: 800px;
	width: 100%;
}

.maintenance-page .logo-container {
	margin-bottom: 3rem;
	animation: fadeInDown 1s ease-out;
}

.maintenance-page .logo-container img {
	max-width: 200px;
	height: auto;
	filter: drop-shadow(0 10px 30px rgba(0, 116, 224, 0.4));
	animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		filter: drop-shadow(0 10px 30px rgba(0, 116, 224, 0.4));
	}
	50% {
		transform: scale(1.05);
		filter: drop-shadow(0 15px 40px rgba(20, 142, 255, 0.6));
	}
}

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

.maintenance-page h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #0074e0 0%, #148eff 50%, #4a9eff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Barre de statut du serveur */
.maintenance-page .server-status-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin: 1.5rem auto 2rem;
	padding: 1rem 2rem;
	background: rgba(32, 49, 60, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 116, 224, 0.2);
	border-radius: 12px;
	max-width: 500px;
	animation: fadeInUp 1s ease-out 0.3s both;
}

.maintenance-page .server-status-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.maintenance-page .server-status-label {
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
}

.maintenance-page .server-status-value {
	color: #ffffff;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.maintenance-page .server-status-divider {
	width: 1px;
	height: 24px;
	background: rgba(255, 255, 255, 0.2);
}

.maintenance-page .status-dot-small {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff0000;
	box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.maintenance-page .status-dot-small.online {
	background: #008000;
	box-shadow: 0 0 8px rgba(0, 128, 0, 0.6);
}

.maintenance-page .server-status-value.offline {
	color: #ff0000;
}

.maintenance-page .server-status-value.online {
	color: #008000;
}

.maintenance-page .subtitle {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease-out 0.4s both;
}

.maintenance-page .message {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.8;
	margin-bottom: 3rem;
	animation: fadeInUp 1s ease-out 0.6s both;
}

.maintenance-page .status-card {
	background: rgba(32, 49, 60, 0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 116, 224, 0.3);
	border-radius: 16px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 32px rgba(0, 116, 224, 0.2);
	animation: fadeInUp 1s ease-out 0.8s both;
}

.maintenance-page .status-indicator {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.maintenance-page .status-dot {
	width: 12px;
	height: 12px;
	background: #008000;
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(0, 128, 0, 0.6);
}

.maintenance-page .status-text {
	font-size: 1rem;
	color: #008000;
	font-weight: 600;
}

.maintenance-page .estimated-time {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 0.5rem;
}

.maintenance-page .social-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
	animation: fadeInUp 1s ease-out 1s both;
}

.maintenance-page .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: rgba(0, 116, 224, 0.15);
	border: 1px solid rgba(0, 116, 224, 0.3);
	border-radius: 50%;
	color: #0074e0;
	text-decoration: none;
	font-size: 1.5rem;
	transition: all 0.3s ease;
}

.maintenance-page .social-link:hover {
	background: rgba(20, 142, 255, 0.25);
	border-color: #148eff;
	color: #148eff;
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 116, 224, 0.4);
}

.maintenance-page .footer-text {
	margin-top: 3rem;
}

/* ============================================
   AUTOTRADE PAGE STYLES
   ============================================ */

.autotrade-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
	padding: 0;
}

@media (max-width: 1400px) {
	.autotrade-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1100px) {
	.autotrade-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.autotrade-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.autotrade-grid {
		grid-template-columns: 1fr;
	}
}

.autotrade-card {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0.75rem;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
	height: 6.25rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autotrade-card::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 1px;
	right: 1px;
	bottom: 1px;
	background-image: url('../../images/widgets/market/background.jpg');
	background-size: auto;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	border-radius: 7px;
}

.autotrade-card::before {
	content: '';
	position: absolute;
	top: 1px;
	left: 1px;
	right: 1px;
	bottom: 1px;
	background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.15) 100%);
	z-index: 1;
	border-radius: 7px;
}

.autotrade-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autotrade-card-portrait {
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	margin-left: 1rem;
	margin-right: 1px;
	background-color: transparent;
	position: relative;
	z-index: 2;
}

.autotrade-portrait-img {
	border-radius: 4px;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
	transform: translateY(-7.3rem) translateX(5em);
}

.autotrade-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	align-self: center;
	position: relative;
	z-index: 2;
	overflow: hidden;
	min-width: 0;
	margin: 1px;
}

.autotrade-card-shop {
	margin: 0;
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autotrade-card-name {
	color: rgba(255, 255, 255, 0.8);
	font-family: 'Roboto', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autotrade-card-guild {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.autotrade-guild-emblem {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	image-rendering: pixelated;
}

.autotrade-guild-name {
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Roboto', sans-serif;
	font-size: 0.7rem;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autotrade-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* ============================================
   AUTOTRADE DETAIL PAGE STYLES
   ============================================ */

.autotrade-detail-card {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 2rem;
	padding-top: 4rem;
	position: relative;
	margin-top: 7rem;
}

.autotrade-detail-portrait {
	position: absolute;
	top: -150px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.autotrade-detail-portrait-img {
	image-rendering: pixelated;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.autotrade-detail-content {
	text-align: center;
}

.autotrade-detail-name {
	font-size: 1.5rem;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 0.5rem 0;
	font-family: 'Roboto', sans-serif;
}

.autotrade-detail-shop {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 1rem 0;
	font-family: 'Roboto', sans-serif;
	font-style: italic;
}

.autotrade-detail-guild {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.autotrade-detail-guild-emblem {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	image-rendering: pixelated;
}

.autotrade-detail-guild-name {
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	font-weight: 400;
}

.autotrade-detail-items {
	margin-top: 2rem;
	text-align: left;
}

.autotrade-detail-items-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 1rem 0;
	font-family: 'Roboto', sans-serif;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 0.5rem;
}

.autotrade-detail-no-items {
	color: rgba(255, 255, 255, 0.5);
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	text-align: center;
	padding: 2rem 0;
}

.autotrade-items-table-wrapper {
	overflow-x: auto;
	margin-top: 1rem;
	display: flex;
	justify-content: center;
}

.autotrade-items-table {
	width: 100%;
	min-width: 40rem;
	max-width: 40rem; 
	border-collapse: collapse;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.autotrade-items-table thead {
	background: rgba(0, 0, 0, 0.4);
}

.autotrade-items-table th {
	padding: 0.75rem 1rem;
	text-align: center;
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.autotrade-items-table th:nth-child(1) {
	width: 60px;
}

.autotrade-items-table th:nth-child(2) {
	width: auto;
	min-width: 300px;
}

.autotrade-items-table th:nth-child(3) {
	width: 150px;
}

.autotrade-items-table th:nth-child(4) {
	width: 200px;
}

.autotrade-items-table tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	transition: background-color 0.2s ease;
}

.autotrade-items-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.05);
}

.autotrade-items-table tbody tr:last-child {
	border-bottom: none;
}

.autotrade-items-table td {
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.9);
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	vertical-align: middle;
	text-align: center;
}

.autotrade-table-icon {
	text-align: center;
}

.autotrade-table-item {
	display: flex;
	align-items: center;
	justify-content: center;
}

.autotrade-table-item-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	image-rendering: pixelated;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.autotrade-table-item-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1;
	min-width: 0;
}

.autotrade-table-item-name {
	color: #ffffff;
	font-family: 'Roboto', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	word-wrap: break-word;
	line-height: 1.3;
}

.autotrade-table-item-refine {
	color: #FFD700;
	font-family: 'Roboto', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(255, 215, 0, 0.2);
	padding: 0.125rem 0.5rem;
	border-radius: 4px;
	display: inline-block;
	width: fit-content;
}

.autotrade-table-item-unidentified {
	color: rgba(255, 100, 100, 0.8);
	font-family: 'Roboto', sans-serif;
	font-size: 0.75rem;
	font-style: italic;
}

.autotrade-table-quantity {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
	white-space: nowrap;
}

.autotrade-table-price {
	color: #FFD700;
	font-weight: 600;
	white-space: nowrap;
	position: relative;
	padding: 0.75rem 1rem !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}


/* Responsive pour la page de maintenance */
@media (max-width: 768px) {
	.maintenance-page h1 {
		font-size: 2rem;
	}

	.maintenance-page .server-status-bar {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem 1.5rem;
		max-width: 90%;
	}

	.maintenance-page .server-status-divider {
		width: 100%;
		height: 1px;
	}

	.maintenance-page .subtitle {
		font-size: 1.25rem;
	}

	.maintenance-page .message {
		font-size: 1rem;
	}

	.maintenance-page .status-card {
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	.maintenance-page h1 {
		font-size: 1.75rem;
	}

	.maintenance-page .server-status-bar {
		padding: 0.875rem 1rem;
		gap: 0.75rem;
	}

	.maintenance-page .server-status-item {
		font-size: 0.875rem;
	}

	.maintenance-page .subtitle {
		font-size: 1rem;
	}
}

/* Page Vote - Classement des voteurs */
.vote-ranking-wrapper {
	overflow-x: auto;
	margin-top: 0.5rem;
	max-width: 100%;
}

.vote-ranking-table {
	width: 100%;
	min-width: 520px;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.vote-ranking-table thead {
	background: rgba(0, 0, 0, 0.5);
}

.vote-ranking-table th {
	padding: 0.85rem 1.25rem;
	text-align: left;
	font-weight: 600;
	font-size: 1.05rem;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.vote-ranking-table td {
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 1.05rem;
	color: #f0f0f0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.vote-ranking-table tbody tr:last-child td {
	border-bottom: none;
}

.vote-ranking-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.05);
}

/* Podium : Or, Argent, Bronze */
.vote-ranking-row--gold {
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.15) 100%) !important;
}

.vote-ranking-row--gold:hover {
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.2) 100%) !important;
}

.vote-ranking-row--silver {
	background: linear-gradient(90deg, rgba(192, 192, 192, 0.35) 0%, rgba(192, 192, 192, 0.15) 100%) !important;
}

.vote-ranking-row--silver:hover {
	background: linear-gradient(90deg, rgba(192, 192, 192, 0.45) 0%, rgba(192, 192, 192, 0.2) 100%) !important;
}

.vote-ranking-row--bronze {
	background: linear-gradient(90deg, rgba(205, 127, 50, 0.35) 0%, rgba(205, 127, 50, 0.15) 100%) !important;
}

.vote-ranking-row--bronze:hover {
	background: linear-gradient(90deg, rgba(205, 127, 50, 0.45) 0%, rgba(205, 127, 50, 0.2) 100%) !important;
}
