/* ===== Global Styles ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4fbf6;
  margin: 0;
  padding: 0;
  text-align: center;
} 

h2, h3 {
  color: #333;
}

/* ===== Layout ===== */ 
.container {
  background: #f4f7fb;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 155px;
  background-color: #2c5d85;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 100px 20px; /*dito mag-adjust */
} 


.sidebar-header {
  text-align:center;
  margin-bottom: 30px;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.sidebar-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

/*.sidebar-menu {
  list-style: none;
  padding: 10px;
  width: 13%;
  margin-bottom: 170px; /*DITO TAAS LAMAN NG SIDEBAR
  position:fixed;
} */

.sidebar-menu {
  list-style: none;
  padding: 0;
  width: 100%;
} 

.sidebar-menu li {
  margin: 15px 0;
}

.sidebar-menu a {
  display: flex;
  width: 95%;
  align-items: center;
  gap: 10px; /* spacing ng icon at text */
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;   /* hindi magba-break sa next line */
}

.sidebar-menu a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
} 

.sidebar-menu a:hover {
  background: rgba(255,255,255,0.2);
} 

/*.logout-btn {
  display: block;
  text-align: center;
  background: #ff964b;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  margin-top: 20px;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #e63946;
}*/

/* ===== Forms ===== */
.form {
  background: white; 
  padding: 20px;
  border-radius: 10px;
  width: 360px;
  margin: 20px auto; /* pwede di need*/
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-box{
  background: white; 
  padding: 20px;
  border-radius: 10px;
  width: 360px;
  margin: 20px auto; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
} 

input, textarea {
  width: calc(100% - 20px);
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

select {
    width: 320px;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button, .btn{
  display: inline-block;
  padding: 10px 18px;
  background: #2c5d85;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

button:hover, .btn:hover, .a {
  background: #1f4564;
}

.btn.alt.a {
  background: #2c5d85; 
}

/*
.error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  width: 360px;
  margin: 0 auto 15px;
}*/

/* ===== DAPAT ITO YUNG Job order, clients, manage accounts Action Buttons ===== */

.edit-btn{
  display: inline-block;
  padding: 5px 14px;
  margin: 2px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s; 
  background: #d1fae5;  
} 

.edit-btn {
    color: #065f46;
} 

.delete-btn{
  display: inline-block;
  padding: 5px 7px;
  margin: 2px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  background: #fee2e2;
} 

.delete-btn {
    color: #991b1b;
} 

/* ===== Tables ===== */
table, .data-table {
  border-collapse: collapse;
  width: 90%;
  margin: 20px auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
} 

th, td, .data-table th, .data-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: center;
}

th, .data-table th {
  background: #2c5d85;
  color: white;
}

tr:nth-child(even), .data-table tr:nth-child(even) {
  background-color: #f2f2f2;
}


/* ===== Report Page Styles ===== */
.report-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  width: 250px;
  text-align: center;
  padding: 20px;
}

.card h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.card p {
  font-size: 24px;
  font-weight: bold;
}

.print-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 40px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.print-btn:hover {
  background: #218838;
} 

/* ===== Login Page: single centered card ===== */
/* BODY */
.login-body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #2c5d85;
}

/* BACKGROUND */
.login-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)),
    url("../images/.png") center/cover no-repeat;
  z-index: 0;
}

/* CARD */
.login-card {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* INNER CARD */
.login-card-inner {
  width: 350px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 50px 30px 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
}

/* AVATAR */
.login-avatar {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TITLE */
.login-card-inner h2 {
  margin: 10px 0 15px;
  font-size: 18px;
  color: #333;
}

/* INPUT GROUP */
.input-group {
  position: relative;
  width: 77%;
  margin: 10px 0;
}

/* INPUT */
.input-group input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  font-size: 14px;
}

/* LEFT ICON */
.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

/* RIGHT EYE ICON */
.toggle-pass {
  position: absolute;
  right: -25%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

.toggle-pass:hover {
  color: #2c5d85;
}

/* INPUT FOCUS */
.input-group input:focus {
  border-color: #2c5d85;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
  outline: none;
}

/* BUTTON */
.login-form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #2c5d85;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background: #3b73a3;
} 

/* small screens: reduce width */
@media (max-width: 420px) {
  .login-card { width: 92%; }
  .login-card-inner { padding: 24px; }
}


/* ===== Top Header ===== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: #2c5d85;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-left: 30px;
  background: white;
} 

.company-name {
  font-size: 21px;
  font-weight: bold;
  margin-left: 5px; 
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-text {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  background: #e74c3c;
  padding: 8px 12px;
  border-radius: 12px;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
} 

/* ===== FIX: Content layout below header and beside sidebar ===== */
.content {
  position: relative;
  margin-top: 90px;     /* space below top header */
  margin-left: 260px;/* space beside sidebar */
  margin-right: 80px;
  margin-bottom: 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  min-height: calc(100vh - 100px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  overflow-x: auto;
  z-index: 1;
}

/* Make sure tables and forms inside .content fit well */
.content table, .content .data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  box-sizing: border-box;
}

.content form, .content .form-box {
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
} 