/*
	Login.php
*/

.container{
    width:100%;
    max-width:450px;
    margin:80px auto;
}

.login-card{
    background:#ffffff;
    padding:35px;
    border-radius:10px;
    box-shadow:0 0 15px rgba(0,0,0,0.15);
}

.logo{
    text-align:center;
    margin-bottom:10px;
}

.logo h1{
    color:#0078d4;
    margin:0;
}

.subtitle{
    color:#666;
    text-align:center;
    margin-bottom:25px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

input[type=text],
input[type=password]{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:5px;
    box-sizing:border-box;
}

button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.blue-btn {
    background-color: #0078D4; /* Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.blue-btn:hover {
    background-color: #106EBE;
}

.blue-btn:active {
    background-color: #005A9E;
}



.error{
    background:#ffe8e8;
    color:#b00000;
    border:1px solid #ffcccc;
    padding:10px;
    margin-bottom:15px;
    border-radius:5px;
}

.divider{
    margin:20px 0;
    border-top:1px solid #ddd;
}

.links{
    text-align:center;
}

.links p{
    margin:10px 0;
}

.links a{
    color:#0078d4;
    text-decoration:none;
}

.links a:hover{
    text-decoration:underline;
}

.footer{
    text-align:center;
    color:#888;
    margin-top:20px;
    font-size:12px;
}


/*
	Status.php
*/

body {
	font-family: Segoe UI, Arial, sans-serif; 
	background: #111111; 
	margin: 0; 
	padding: 0 40px 15px;
	color: #1a1a1a; 
}

h1 { 
	margin-bottom: 10px; 
	color: #ffffff;
}

.subtitle { 
	color: #666; 
	margin-bottom: 30px; 
}

table {
	width: 100%; 
	border-collapse: collapse; 
	background: #fff; 
	box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

th { 
	text-align: center; 
	padding: 12px 16px; 
	border-bottom: 1px solid #eee; 
}			

td { 
	text-align: center; 
	border-bottom: 1px solid #eee; 
}

th { 
	background: #fafafa; 
	font-size: 13px; 
	text-transform: uppercase; 
	color: #666; 
	letter-spacing: 0.5px; 
}

.badge {
	display: inline-block; 
	padding: 4px 10px; 
	border-radius: 12px; 
	font-size: 13px; 
	font-weight: 600; 
	
}

.up { 
	background: #e3f9e5; 
	color: #1a7f37; 
}

.down { 
	background: #ffe3e3; 
	color: #c92a2a; 
}

.unknown { 
	background: #eee; 
	color: #666; 
}

.failover { 
	background: #e7f5ff; 
	color: #1971c2; 
}

.text { 
	color: #ffffff; 
	font-size: 9px; 
}

.refresh-note { 
	margin-top: 20px; 
	color: #999; 
	font-size: 13px; 
}

.chart {
	width: 60px;
	height: 60px;
	display: block;
	margin: auto;
}

.chart text {
	font-size: 40px;
	font-weight: bold;
	fill: #ffffff;
}

.ConnectivityCharts {
	display: flex;
	gap: 10px;
	align-items: center;
}


.panel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15%, 1fr));
    gap: 5px;
}

.panel {
    padding: 10px;
}

.panel-default { 
	background-color: #ffffff; 
    border: 3px solid #777777;
}

.panel-online  { 
	background-color: rgba(0,255,150,0.08); 
    border: 3px solid #36d900;
}

.panel-failover  { 
	background-color: rgba(0,150,255,0.08); 
    border: 3px solid #00bfff;
}

.panel-offline  { 
	background-color: rgba(255,0,0,0.08); 
    border: 3px solid #d90000;
}

.text-name {
	text-align: center;
	font-size: 13px; 
}

.site-drawer {
    position: fixed;
    top: 0;width: min(25vw, 450px);
	right: calc(-1 * min(25vw, 450px));
    height: 100vh;
    background: #1f2937;
    color: white;
    box-shadow: -4px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
}

.site-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #374151;
}


.drawer-header h3 {
    margin: 0;
	white-space: nowrap;
}

.drawer-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
	margin-left:auto;
}

.drawer-content {
    padding: 20px;
}

.header-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    background: #000;
}

.header-group h1 {
    margin: 0;
    color: #fff;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
	position: relative;
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.navbar-actions button {
    background: transparent;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}

/* Vertical separators */
.navbar-actions button + button,
.navbar-actions form {
    border-left: 1px solid #555;
}

/* If Logout is in a form */
.navbar-actions form {
    margin: 0;
    padding-left: 0;
}

.navbar-actions button:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Burger button hidden on desktop */
.burger {
display: none;
background: transparent;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
padding: 8px 12px;
}




@media screen and (max-width: 992px) { 

.panel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 5px;
}

}

@media screen and (max-width: 767px) { 

.panel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 0fr));
    gap: 5px;
}

.site-drawer {
	position: fixed;
	top: 0;
	right: 0;

	width: 100%;
	max-width: 100%;
	height: 100dvh; 

	transform: translateX(100%);
	transition: transform 0.3s ease-in-out;

	background: #1f2937;
	color: white;

	z-index: 1001;
	overflow-y: auto;
	overflow-x: hidden;

	box-shadow: -4px 0 10px rgba(0,0,0,0.3);

	-webkit-overflow-scrolling: touch;
}

.site-drawer.open {
	transform: translateX(0);
}

.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1000;

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
	opacity: 1;
	visibility: visible;
}

.drawer-header {
	position: sticky;
	top: 0;
	background: #1f2937;
	z-index: 2;
	padding: 15px;
}

.drawer-content {
	padding: 15px;
}

.burger {
	display: block;
}

.navbar-actions {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	flex-direction: column;
	background: #111;
	min-width: 160px;
	border: 1px solid #555;
	z-index: 1000;
}

.navbar-actions.show {
	display: flex;
}

.navbar-actions > * {
	width: 100%;
	border-left: none !important;
	border-bottom: 1px solid #555;
}

.navbar-actions > *:last-child {
	border-bottom: none;
}

.navbar-actions button {
	width: 100%;
	text-align: left;
}


}