
@import url("poll.css");
@import url("list.css");
@import url("tags.css");
@import url("news.css");
@import url("objectmenu.css");
@import url("dark-theme.css");

body
{
	font: normal 10pt Arial,Helvetica,sans-serif;
	background-color: white;
	color: #444;
	text-align: left;
	margin: 0;
	padding: 0;
	scroll: no;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a, a:visited
{
	color: #306495;
	background: inherit;
	text-decoration: none;
}

a:hover
{
	color: #73471B;
	background: inherit;
	text-decoration: underline;
}

img
{
	border: 0;
	padding: 0;
}

h2
{
	margin: 20px 0 0px 25px;
	font-size: 1.4em;
}

hr
{
	display: block; 
	height: 1px;
    border: 0; 
    border-top: 1px solid #e5e5e5;
}
    

.page
{
}

/* ---------------------------------------------- */

.page .headermenu
{
	position: fixed;
	right: 10px;
	top: 0px;
	color: #ccc;
	z-index: 10;
	font-size: 1.0em;
}

.page .headermenu img
{
	border-radius: 5px;
	padding: 2px 0 0 0; 
	height: 26px;
}

.page .headermenu a
{
	color: #ccc;
	text-decoration: none;
}

/* ---------------------------------------------- */

.page .tabmenu-out
{
	position: fixed;
	top: 0px;
	right: 0px;
	left: 0px;
	z-index: 8;
	height: 40px;
	color: #aaa;

	background-image: url(/images/base/top_header.png);
	background-repeat: repeat-x;
	
	-webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .25);
	box-shadow: 0 2px 3px rgba(0, 0, 0, .25);
}

.page .tabmenu-inner
{
	font-size: 1.1em;
	font-weight: bold;
	padding: 10px;
}

.page .tabmenu-inner a
{
	text-decoration: none;
	padding: 10px;
	color: #aaa;
}

.page .tabmenu-inner .selected
{
	color: #eee;
	border: 1px solid #181818;
	background-image: url(/images/base/top_header_selected.png);
	background-repeat: repeat-x;
}

/* ---------------------------------------------- */

.page .main
{
	padding: 10px 10px;
	border: 0;
	margin: 0;
	font-size: 1.2em;
}

.page .content-out
{
	padding: 36px 0px 50px 0px;
	flex: 1;
}

.page .content-inner
{
	padding: 10px;
}

/* ---------------------------------------------- */

.page .footer
{
	font-size: 0.8em;
	font-weight: bold;
	text-align: center;
	padding: 10px;
	background-color: #ccc;
	color: #333;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.page .footer p
{
	padding: 0px;
	margin: 0px;
}

/* ---------------------------------------------- */

.main-left-box
{
	border: 1px solid #e8e8e8;
	border-radius: 5px;
}

.main-left-title
{
	padding: 8px;
	background-color: #e5e5e5;
	font-weight: bold;
}

.main-left-inner
{
	padding: 5px;
}

.main-left-inner ul
{
	padding: 0px;
	margin: 5px 0 0 0;
}

.main-left-inner li
{
	padding: 5px;
	list-style: none;
	font-size: 1.0em;
}

.main-text-input
{
	width: 98%;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 5px;
}

.main-submit-button
{
	width: 80px;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 5px;
}

/* ---------------------------------------------- */

.red
{
	color: red;
}

.green
{
	color: green;
}

.blue
{
	color: blue;
}

/* ========================================
   ADMIN SIDEBAR BUTTONS
   ======================================== */
.admin-sidebar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.admin-sidebar a.admin-btn,
.admin-sidebar a.admin-btn:visited,
.admin-sidebar a.admin-btn:link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	background: #2a2a2a;
	border: 1px solid #444;
	border-radius: 4px;
	color: #e0e0e0;
	text-decoration: none;
	font-size: 12px;
	line-height: 1;
	transition: background 0.2s, border-color 0.2s;
}
.admin-sidebar a.admin-btn:hover {
	background: #3a3a3a;
	border-color: #6ea8fe;
	color: #fff;
}

/* ============================================================
   Auto Refresh - Smooth Update Transitions
   ============================================================ */

/* Transizione per celle aggiornate - highlight sottile verde */
.cell-updated {
	transition: background-color 0.8s ease-out;
	background-color: rgba(76, 175, 80, 0.15) !important;
}

/* Transizione per righe */
.row-updated {
	transition: background-color 0.8s ease-out;
	background-color: rgba(76, 175, 80, 0.08) !important;
}

/* Fade per contenitori durante refresh */
.refreshing {
	opacity: 0.7;
	transition: opacity 0.15s ease-in-out;
}

/* Previeni flash durante caricamento tabelle */
table.dataGrid tbody,
table.dataGrid2 tbody {
	transition: opacity 0.15s ease-in-out;
}

/* Animazione sottile per nuove righe */
@keyframes fadeInRow {
	from {
		opacity: 0;
		background-color: rgba(76, 175, 80, 0.2);
	}
	to {
		opacity: 1;
		background-color: transparent;
	}
}

.new-row {
	animation: fadeInRow 0.5s ease-out;
}

/* Badge miners attivi - smooth update */
#active_miners_badge {
	transition: all 0.3s ease-out;
}

/* Pulsante Resume pausa */
#resume_update_button {
	transition: all 0.3s ease-out;
}

/* Layout standard: margini laterali consistenti 
   - Le pagine con table cellspacing=20 hanno già 20px ai lati
   - Le pagine con #main_results diretto hanno bisogno di margini */
#main_results {
	margin: 0 10px;
}
