/*Generel style*/
h1 {
    /* text-align: center; is now optional, but can be kept for robustness */
    text-align: center;
    margin-bottom: 20px; /* Spacing below the headline */
    color: #333; /* Make sure it's visible */
}
i {
	padding-left: 4px;
}
body {
	margin: 0px;
}
main{
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 10px;
}

.required {
  color: red;
}

/* Modal Content */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Ensure it stays above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Slightly darker for better focus */
    backdrop-filter: blur(4px); /* Modern blur effect */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Deep shadow for depth */
    width: 400px; /* Fixed width is better for forms */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
    flex-direction: column;
}
.popup_box_close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.popup_box_close:hover {
    color: #333;
}

.model-content input {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.model-content label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
}
.modal-content input[type="text"],
.modal-content input[type="number"] {
    width: 100%;           /* Force them to fill their parent container */
    box-sizing: border-box; /* Include padding/border in that width */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.modal-content input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}
.row {
    display: flex;
    gap: 15px;
    width: 100%;
}
.row .input-group {
    flex: 1;
    min-width: 0; /* Prevents flex items from bulging out */
}

h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #333;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Form Layout */



/* Styling Select Boxes */
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #007bff; /* Blue glow on focus */
}

.update-btn {
    width: 100%;
    padding: 14px;
    /* Sophisticated gradient matching your header */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space for an icon if you add one later */
	margin-top: 20px;
}

/* Hover Effect: Lifts up and glows slightly */
.update-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

/* Active Effect: Pushes down when clicked */
.update-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Optional: Disabled state for when you are processing the update */
.update-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}


/* deviceview/device - Device Info */


/* deviceview/device - Counter */
.card-header {
  display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.counters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* three equal columns */
  gap: 20px;
}

.counter-column {
  border-top: 2px solid #333; /* The thick line from your image */
  padding-top: 10px;
}

.total-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 5px 0;
}

.sub-stats {
  font-size: 0.75rem;
  color: #888;
  border-top: 1px solid #eee; /* Thin line above Print/Copy */
  padding-top: 5px;
}

.ratio-container {
    margin-top: 8px; /* Pulls the visual closer to the numbers above */
}
.percentage-row {
  display: flex;
    font-size: 0.9rem;      /* Slightly smaller for a "pro" look */
    font-weight: bold;
    color: #666;
    margin-bottom: 1px;    /* Pulls text very close to the bar */
    line-height: 1;
}
.ratio-bar {
  display: flex;
    height: 7px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.ratio-bw { background-color: #333; }
.ratio-color { background: linear-gradient(to right, #00aeef, #ec008c, #fff200); }

.scan-theme {
  border-top: 2px solid #4caf50; 
}


/* deviceview/device - Toner */

.toner-row {
  margin-bottom: 15px;
}
.toner-label {
  font-size: 1.10rem;
  margin-bottom: 5px;
  color: #666;
}
.percent {
  font-weight: bold;
  color: #333;
}
.progress-container {
  background-color: #f0f0f0; /* The "empty" gray part */
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
}
.cyan { background-color: #00aeef; }
.magenta { background-color: #ec008c; }
.black { background-color: #333333; }
.yellow { background-color: #FFFF00; }

/* devoceview/device - Main container */
	.dashboard-container {
	  display: flex;
	  gap: 20px; /* Space between boxes */
	  padding: 20px;
	  flex-wrap: wrap; /* Allows boxes to drop to the next line on mobile */
	  align-items: stretch;
	}


/* The individual box style */
	.card {
	  background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    /* This ensures cards grow equally in width and height */
    flex: 1 1 300px; 
    /* This ensures long tables don't break the box */
    max-width: 100%; 
    min-height: 250px;
    display: flex;
    flex-direction: column;
	  
	  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
	  border: 1px solid #eef0f2;
	}
	.card h3 {
	  margin-top: 0;
	  border-bottom: 1px solid #eee;
	  padding-bottom: 10px;
	  color: #333;
	}
/*Navbar top menu */
	.navbar ul{
		list-style-type: none;
		background-color: hsl(0, 0%, 25%);
		padding: 0px;
		margin: 0px;
		overflow: hidden;
	}
	.navbar a{
		color: white;
		text-decoration: none;
		padding: 15px;
		display: block;
		text-align: center;
	}
	.navbar a:hover{
		background-color: hsl(0, 0%, 10%);
	}
	.navbar li{
		float: left;	
	}
/*Table style*/
	.table-container {
		width: 100%;
		overflow-x: auto; /* Adds horizontal scroll if table is too wide */
		-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
		flex-grow: 1;
	}

	table {
		font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A more modern sans-serif font */
		border-collapse: collapse;
		width: 100%;
		min-width: 400px;
		border-collapse: collapse;
		/* Optional: Add a subtle shadow for depth */
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
	td, th {
		border: 1px solid #e0e0e0; /* Lighter border color */
		text-align: left;
		padding: 10px 12px; /* Slightly more vertical and horizontal padding */
	}
	th {
		background-color: #a1a1a1; /* Light gray background for headers */
		font-weight: bold; /* Ensure headers are bold */
		color: #333; /* Darker text for better contrast */
		text-transform: uppercase; /* Slightly more professional look for headers */
		letter-spacing: 0.5px; /* A little space between letters in headers */
	}
	tr:nth-child(even) {
		background-color: #f9f9f9; /* Lighter alternating row color */
	}
	tr:hover {
		background-color: #eaf6ff; /* Highlight row on hover for better interaction */
		cursor: pointer; /* Indicates row is interactive, even if not clickable */
	}
