/* ========================================
   CONSOLIDATED STYLES FOR FACTORY MAINTENANCE PROJECT
   ======================================== */

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #ffffff;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
    color: rgb(24, 24, 117);
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    background-color: transparent;
    padding: 20px;
    text-align: left;
    font-weight: bold;
    color: rgb(58, 25, 90);
    display: flex;
    align-items: center;
    margin-bottom: -10px;
}

.header hr {
    border-top: 1px solid #CCCCCC;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 150px;
    height: auto;
    opacity: 1;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.tabs {
    list-style: none;
    margin: 0 auto;
    padding: 0 auto;
    display: flex;
    justify-content: center;
    background-color: transparent;
    align-items: center;
    width: auto;
    text-align: justify;
    font-size: large;
}

.tabs li {
    margin-right: 30px;
    position: relative;
}

.tabs a {
    color: rgb(58, 25, 90);
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px;
    display: inline-block;
}

.tabs li:active {
    background-color: #ddd;
    color: rgb(24, 24, 117);
}

.tabs li:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    color: rgb(24, 24, 117);
}

/* Dropdown Navigation */
.drop_tab {
    color: rgb(58, 25, 90);
    text-align: justify;
    font-size: medium;
    font-weight: bold;
    text-decoration: none;
    display: inline;
    margin: 0;
    padding: 0 auto;
}

.drop_tab li {
    display: inline-block;
    font-size: small;
}

.drop_tab li:hover {
    background: #f0f0f0;
}

.drop_tab li:hover ul {
    display: block;
}

.drop_tab li ul {
    position: absolute;
    width: 200px;
    display: none;
    font-size: small;
}

.drop_tab li ul li {
    background: transparent;
    display: block;
    font-size: small;
}

.drop_tab li ul li {
    display: block !important;
}

.drop_tab ul li:hover {
    background: #c3aaca;
}

/* --- Bell Icon Dropdown Styles (tabs1/drop_tabs) --- */
.tabs1 {
  display: inline-block;
  margin-right: 20px;
}
.drop_tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-block;
}
.drop_tabs > li {
  position: relative;
  display: inline-block;
}
.drop_tabs > li > a {
  display: inline-block;
  padding: 5px 10px;
  color: rgb(58, 25, 90);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}
.drop_tabs > li > ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 4px;
  z-index: 100;
  padding: 0;
}
.drop_tabs > li:hover > ul {
  display: block;
}
.drop_tabs > li > ul > li {
  display: block;
  padding: 0;
}
.drop_tabs > li > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: rgb(58, 25, 90);
  text-decoration: none;
  font-size: 15px;
}
.drop_tabs > li > ul > li > a:hover {
  background: #f0f0f0;
}

/* ========================================
   ICONS SECTION
   ======================================== */

.icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
}

.icon {
    width: 50px;
    height: 50px;
}

/* Icon Link Base Styles */
.gg-add-r-link,
.gg-calendar-link,
.gg-user-link,
.gg-remove-r-link,
.gg-software-download-link,
.gg-shopping-cart-link,
.gg-view-list-link,
.gg-pen-link,
.gg-bell-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.gg-add-r-link:hover,
.gg-calendar-link:hover,
.gg-user-link:hover,
.gg-remove-r-link:hover,
.gg-software-download-link:hover,
.gg-shopping-cart-link:hover,
.gg-view-list-link:hover,
.gg-pen-link:hover,
.gg-bell-link:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    color: rgb(58, 58, 90);
}

.gg-add-r-link:active,
.gg-calendar-link:active,
.gg-user-link:active,
.gg-remove-r-link:active,
.gg-software-download-link:active,
.gg-shopping-cart-link:active,
.gg-view-list-link:active,
.gg-pen-link:active,
.gg-bell-link:active {
    transform: scale(0.9);
}

/* Icon Specific Spacing */
.gg-calendar-link {
    margin-left: 20px;
}

.gg-user-link {
    margin-right: 20px;
    margin-left: 20px;
}

/* ========================================
   ICON DESIGNS
   ======================================== */

/* Add Icon */
.gg-add-r {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid;
    transform: scale(var(--ggs, 1));
    border-radius: 4px;
    color: rgb(58, 25, 90);
}

.gg-add-r::after,
.gg-add-r::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 10px;
    height: 2px;
    background: currentColor;
    border-radius: 5px;
    top: 8px;
    left: 4px;
}

.gg-add-r::after {
    width: 2px;
    height: 10px;
    top: 4px;
    left: 8px;
}

/* Calendar Icon */
.gg-calendar,
.gg-calendar::before {
    display: block;
    box-sizing: border-box;
}

.gg-calendar {
    position: relative;
    transform: scale(var(--ggs, 1));
    width: 22px;
    height: 22px;
    border: 2px solid;
    border-top: 4px solid;
    border-radius: 3px;
    color: rgb(58, 25, 90);
}

.gg-calendar::before {
    content: "";
    position: absolute;
    width: 10px;
    border-radius: 3px;
    left: 2px;
    background: currentColor;
    height: 2px;
    top: 2px;
}

/* User Icon */
.gg-user {
    display: block;
    transform: scale(var(--ggs, 1));
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    color: rgb(58, 25, 90);
    transform: scale(1.5);
}

.gg-user::after,
.gg-user::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    border: 2px solid;
}

.gg-user::before {
    width: 8px;
    height: 8px;
    border-radius: 30px;
    top: 0;
    left: 2px;
}

.gg-user::after {
    width: 12px;
    height: 9px;
    border-bottom: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    top: 9px;
}

/* Remove Icon */
.gg-remove-r {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 22px;
    height: 22px;
    border: 2px solid;
    color: rgb(58, 25, 90);
}

.gg-remove-r::before {
    width: 10px;
    height: 2px;
    border-radius: 5px;
    top: 8px;
    left: 4px;
}

.gg-remove-r::after,
.gg-remove-r::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    border: 2px solid;
}

.gg-remove-r::after {
    width: 12px;
    height: 9px;
    border-bottom: 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    top: 9px;
}

/* Download Icon */
.gg-software-download {
    box-sizing: border-box;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 16px;
    height: 6px;
    border: 2px solid;
    border-top: 0;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    margin-top: 8px;
    color: rgb(58, 25, 90);
}

.gg-software-download::after {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 8px;
    height: 8px;
    border-left: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-45deg);
    left: 2px;
    bottom: 4px;
}

.gg-software-download::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    border-radius: 3px;
    width: 2px;
    height: 10px;
    background: currentColor;
    left: 5px;
    bottom: 5px;
}

/* Shopping Cart Icon */
.gg-shopping-cart {
    display: block;
    box-sizing: border-box;
    transform: scale(var(--ggs, 1));
    width: 16px;
    height: 6%;
    color: rgb(58, 25, 90);
    background:
        linear-gradient(to left, currentColor 12px, transparent 0) no-repeat -1px 6px/18px 2px,
        linear-gradient(to left, currentColor 12px, transparent 0) no-repeat 6px 14px/11px 2px,
        linear-gradient(to left, currentColor 12px, transparent 0) no-repeat 0 2px/4px 2px,
        radial-gradient(circle, currentColor 60%, transparent 40%) no-repeat 12px 17px/4px 4px,
        radial-gradient(circle, currentColor 60%, transparent 40%) no-repeat 6px 17px/4px 4px;
}

.gg-shopping-cart::after,
.gg-shopping-cart::before {
    content: "";
    display: block;
    position: absolute;
    box-sizing: border-box;
    width: 2px;
    height: 14px;
    background: currentColor;
    top: 2px;
    left: 4px;
    transform: skew(12deg);
}

.gg-shopping-cart::after {
    height: 10px;
    top: 6px;
    left: 16px;
    transform: skew(-12deg);
}

/* View List Icon */
.gg-view-list {
    box-sizing: border-box;
    display: block;
    transform: scale(var(--ggs, 1));
    border: 2px solid;
    border-radius: 3px;
    width: 20px;
    height: 14px;
    color: rgb(58, 25, 90);
    right: 20px;
}

.gg-view-list::after,
.gg-view-list::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 2px;
    height: 14px;
    top: -2px;
    left: 3px;
    background: currentColor;
}

.gg-view-list::before {
    width: 20px;
    height: 2px;
    left: 2px;
    top: 2px;
    box-shadow: 0 4px 0;
}

/* Pen/Edit Icon */
.gg-pen {
    box-sizing: border-box;
    display: block;
    transform: rotate(-45deg) scale(var(--ggs, 1));
    width: 20px;
    height: 14px;
    border-right: 2px solid transparent;
    box-shadow: 0 0 0 2px, inset -2px 0 0;
    border-top-right-radius: 1px;
    border-bottom-right-radius: 1px;
    margin-right: -2px;
    color: rgb(58, 25, 90);
}

.gg-pen::after,
.gg-pen::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
}

.gg-pen::before {
    background: currentColor;
    border-left: 0;
    right: 6px;
    left: 20px;
    width: 3px;
    height: 4px;
    border-radius: 1px;
    top: 0;
}

.gg-pen::after {
    width: 8px;
    height: 7px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 7px solid;
    left: -11px;
    top: -2px;
}

/* Bell Icon */
.gg-bell,
.gg-bell::before {
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
}

.gg-bell:hover {
    background-color: #e0dcdc;
    color: rgb(58, 58, 90);
}

.gg-bell {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    border: 2px solid;
    border-bottom: 0;
    width: 14px;
    height: 14px;
    color: rgb(58, 25, 90);
}

.gg-bell::after,
.gg-bell::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
}

.gg-bell::before {
    background: currentColor;
    width: 4px;
    height: 4px;
    top: -4px;
    left: 3px;
}

.gg-bell::after {
    border-radius: 3px;
    width: 16px;
    height: 10px;
    border: 6px solid transparent;
    border-top: 1px solid transparent;
    box-shadow: inset 0 0 0 4px, 0 -2px 0 0;
    top: 14px;
    left: -3px;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
}

/* ========================================
   CONTENT STYLES
   ======================================== */

.content {
    position: relative;
    z-index: 1;
}

.columns {
    justify-content: space-between;
}

.column {
    flex-basis: 30%;
    margin: 50px;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: auto;
}

.column h2 {
    margin-top: 0;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.add-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
    cursor: pointer;
    border: 1px solid #ccc;
}

.add-btn:hover {
    background-color: rgba(196, 183, 172, 0.1);
}

.data-grid-button {
    float: right;
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #fff;
    cursor: pointer;
}

.data-grid-button:hover {
    background-color: #23527c;
}

.button {
    background-color: rgb(58, 58, 90);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: rgb(58, 25, 90);
}

button {
    background-color: rgb(58, 58, 90);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: rgb(58, 25, 90);
}

/* ========================================
   FORM STYLES
   ======================================== */

.login-form {
    color: rgb(58, 25, 90);
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    background-position: center;
    background-size: contain;
    padding: 20px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-form button {
    background-color: rgb(58, 58, 90);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.login-form button:hover {
    background-color: rgb(58, 25, 90);
}

/* Form Base Styles */
form {
    background-size: cover;
    margin: 40px 0 0 40px;
    background: transparent;
    width: 500px;
    height: auto;
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: left;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;

}

button[type="submit"],
input[type="submit"] {
    background-color: rgb(58, 58, 90);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: rgb(58, 25, 90);
}

/* Search Form Specific */
.search_btn form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  position: static;
  width: 100%;
  max-width: 500px;
  margin: 0;
  border: none;
  box-shadow: none;
}
.search_btn input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 10px;
  border-radius: 10px;
}
.search_btn button[type="submit"] {
  width: auto;
  height: 40px;
  margin-left: 0;
  border-radius: 10px;
  padding: 0 20px;
}

/* ========================================
   TABLE STYLES
   ======================================== */

table {
    border-collapse: collapse;
    border-spacing: 20px;
    display: table;
    position: absolute;
    left: 10px;
    table-layout: fixed;
    width: 95%;
    height: auto;
    margin: 0 auto;
    text-align: center;
    border: 0.5px solid black;
}

td, th, label, input, input[type="text"] {
    border: transparent;
    padding: 0;
    text-align: left;
    max-width: 100%;
    max-height: 30px;
    height: 30px;
    overflow-wrap: break-word;
    margin: 2px;
}

td {
    white-space: nowrap;
    overflow: auto;
    padding: 3px;
    line-height: 3;
    text-align: center;
}

th {
    text-align: center;
}

tr {
    border: 1px solid black;
}

tbody tr:nth-child(odd) {
    background: #e3d7eb;
}

caption {
    font-size: 0.8rem;
}

/* --- Table Border Fix --- */
.data-grid table {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.data-grid th {
  background-color: #f0f0f0;
  border-bottom: 2px solid #e0e0e0;
}

/* ========================================
   DATA GRID STYLES
   ======================================== */

.data-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.data-grid th,
.data-grid td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.data-grid th {
    background-color: #f0f0f0;
    border-bottom: 2px solid #337ab7;
}

.data-grid tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-grid tr:hover {
    background-color: #e5e5e5;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 0.5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   DROPDOWN STYLES
   ======================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.dashboard {
    padding: 20px;
}

.equipment {
    padding: 20px;
}

.maintenance {
    padding: 20px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    background-color: #F0F0F0;
    padding: 10px;
    text-align: center;
    clear: both;
}

.footer p {
    margin-top: 20px;
    color: rgb(58, 25, 90);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
    width: 20%;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    align-content: center;
    justify-content: center;
    font: optional;
}

#Title-text {
    font-size: 100px;
}

.image-and-form-container {
    display: flex;
    justify-content: left;
}

.image-container {
    position: relative;
}

.full-image {
    width: 300px;
    height: 200px;
    border-radius: 0px;
}

.background-image {
    width: 320px;
    height: 220px;
    backface-visibility: visible;
    background-origin: border-box;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
}

.cropped-image {
    position: relative;
    top: 50%;
    left: 90%;
    transform: translate(-0%, -50%);
    width: 300px;
    height: 200px;
    border-radius: 0px;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.header span {
    font-weight: bold;
} 

/* --- Search Bar Right Alignment --- */
.search_btn {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 20px;
}
.search_btn form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  position: static;
  width: 100%;
  max-width: 500px;
  margin: 0;
  border: none;
  box-shadow: none;
}

/* --- Consistent Vertical Spacing for Layout (Improved) --- */
.tabs {
  margin-bottom: 32px;
}
.search_btn {
  margin-bottom: 32px;
}
/* If .content or .data-grid comes right after .search_btn, no extra top margin */
.search_btn + .content,
.search_btn + .data-grid {
  margin-top: 0;
}
/* Otherwise, .content and .data-grid get a top margin for spacing from the nav bar */
.tabs + .content,
.tabs + .data-grid {
  margin-top: 32px;
}
/* For pages without .search_btn, ensure .content/.data-grid after .tabs has spacing */
.content,
.data-grid {
  margin-top: 0;
}

/* --- Main Nav Bar Hover Color Match --- */
.tabs li:hover,
.drop_tab li:hover {
  background: #f0f0f0 !important;
}

/* --- Remove Blue Border from Table Header --- */
.data-grid th {
  background-color: #f0f0f0;
  border-bottom: 2px solid #e0e0e0;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
 
   
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: rgb(58, 25, 90);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgb(58, 25, 90);
    box-shadow: 0 0 5px rgba(58, 25, 90, 0.3);
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.form-buttons button[type="submit"] {
    background-color: rgb(58, 58, 90);
    color: white;
}

.form-buttons button[type="submit"]:hover {
    background-color: rgb(58, 25, 90);
}

.form-buttons button[type="button"] {
    background-color: #6c757d;
    color: white;
}

.form-buttons button[type="button"]:hover {
    background-color: #5a6268;
} 