/* General layout */
body {
    font-family: "Century Gothic", Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between; /* logo left, links right */
    align-items: center;
    background: #000000; /* black */
    padding: 10px 30px;
}

/* Logo */
.navbar .logo {
    height: 50px;
    width: auto;
}

/* Navigation links */
.navbar .nav-right a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}
.navbar .nav-right a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}
.navbar .nav-right a.active {
    font-weight: 700;
    text-decoration: underline;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar .nav-right {
        margin-top: 10px;
    }
    .navbar .nav-right a {
        margin-left: 0;
        margin-bottom: 5px;
    }
}

/* Page container */
.container {
    max-width: 1400px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Headings */
h1, h2, h3 {
    color: #C0272D;
}

/* Forms */
form {
    margin-top: 20px;
    margin-bottom: 30px;
}
input, select, button {
    display: block;
    margin: 8px 0;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
}
button {
    background: #C0272D;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
}
button:hover {
    background: #990000;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #252525;
    color: #ffffff;
    text-align: left;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.card {
    background: #000000;
    color: #ffffff;
    border-radius: 10px;
    text-align: center;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: scale(1.05);
}
.card h2 {
    font-size: 2.2em;
    font-weight: 700;
}

/* Low ink / low stock alert card */
.alert-card {
    background-color: #C0272D;
    border: 1px solid #990000;
    color: #ffffff !important;
    text-align: center;
    border-radius: 10px;
    padding: 25px;
    font-weight: 700;
    font-size: 1.2em;
}
.alert-card h2 {
    font-size: 2.2em;
    color: #ffffff !important;
}
.alert-card p {
    color: #ffffff !important;
}

/* Alerts */
.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
}
.alert-danger {
    background: #f8d7da;
    color: #7d1f28;
}

/* Charts Row - 3 in a row */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Individual chart container */
.chart-container {
    background: #f0f0f0;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-height: 450px;
}

/* Chart headings */
.chart-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #C0272D;
}

/* Chart canvas responsive */
canvas {
    width: 100% !important;
    height: 400px !important;
    margin-top: 10px;
    margin-bottom: 30px;
    font-family: "Century Gothic", Arial, sans-serif;
}

/* Add Material button */
.btn-add-material {
    background: #C0272D;
    color: white;
    padding: 15px 45px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}
.btn-add-material:hover {
    background: #a01f25;
}

/* Materials filter form */
.materials-filter-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 30px;
}

/* Inputs in filter form */
.materials-filter-form input {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Filter button */
.materials-filter-form .btn-filter {
    background: #252525; /* black */
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.materials-filter-form .btn-filter:hover {
    background: rgb(18, 18, 18);
}

/* Clear Filter button */
.btn-clear {
    background: #555; /* dark grey */
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-clear:hover {
    background: #333;
}

/* Highlight low stock rows */
.low-stock {
    background-color: #C0272D;
    color: white;
    font-weight: bold;
}
.low-stock a {
    color: white !important;
    font-weight: bold;
}

/* Low Stock label inside table row */
.low-stock-label {
    background: white;
    color: #C0272D;
    font-weight: normal;
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 5px;
    border-radius: 3px;
}

/* Edit Material Form */
.edit-material-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.buttons-row button {
    flex: 1;                       /* equal width */
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    color: white;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.buttons-row button:hover {
    opacity: 0.9;
}

/* Update button */
.buttons-row button[type="submit"] {
    background-color: #be272c;
}
.buttons-row button[type="submit"]:hover {
    background-color: #a01f25;
}

/* Cancel button */
.buttons-row .btn-cancel {
    background-color: #777;
}
.buttons-row .btn-cancel:hover {
    background-color: #555;
}



/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropdown-btn {
    font-size: 16px;
  padding: 15px 45px;
  background-color: #5b5b5b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-btn:hover {
  background-color: #323232;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 110px;
  box-shadow: 0px 4px 8px #00000026;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  top: 100%;
  right: 0;
}

/* Dropdown links */
.dropdown-content a {
  color: #be272c;
  padding: 6px 10px;
  text-decoration: none;
  display: block;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #ecececf7;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}




.container {
    width: 90%;
    max-width: 1500px;
    margin: 50px auto;
    padding: 20px;
    box-sizing: border-box;
}



