/* =========================================================
ORACLE APEX – MODERN ROUND BUTTON SET
Author: Reusable APEX UI
========================================================= */


.btn-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* auto-fit columns, minimum width 140px */
  gap: 12px;
  justify-items: stretch;   /* buttons fill grid cell */
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;          /* side padding */
}

/* ---------- BASE BUTTON ---------- */
.apex-btn {
  border-radius: 42px;
  padding: 14px 36px;         /* unified size */
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.6px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background-clip: padding-box;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                   /* spacing for icons */
  width: 100%;                 /* fill grid cell */
  box-sizing: border-box;
}

/* Hover */
.apex-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
}

/* Active */
.apex-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Disabled */
.apex-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- CREATE BUTTON ---------- */
.btn-create {
  background: linear-gradient(135deg,#00c853,#00e676);
  text-transform: uppercase;
  font-weight: 900;
  position: relative;
}

.btn-create::before {
  content: "✚";
  font-size: 20px;
  font-weight: 900;
}

/* ---------- PRINT BUTTON ---------- */
.btn-print {
  background: linear-gradient(135deg,#ff7a18,#ff5f9e);
  font-weight: 900;
  position: relative;
}

.btn-print::before {
  content: "\f02f";       /* Font Awesome printer icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

/* ---------- ORANGE LOGIN BUTTON ---------- */
.btn-orange-login {
  background: linear-gradient(135deg,#ff8c00,#ffb347);
  color: #ffffff;
  border-radius: 42px;
  padding: 14px 36px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(255,140,0,0.5);
  position: relative;
}

.btn-orange-login::before {
  content: "\f090";       /* Font Awesome login icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.btn-orange-login:hover {
  background: linear-gradient(135deg,#ff9f1c,#ffd194);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255,140,0,0.65);
}

.btn-orange-login:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 6px 14px rgba(255,140,0,0.35);
}

/* ---------- FULL SCREEN IMAGE ---------- */
.full-screen-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.responsive-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

/* ---------- ACTION BUTTONS ---------- */
.btn-save        { background: linear-gradient(135deg,#2ecc71,#27ae60); }
.btn-cancel      { background: linear-gradient(135deg,#95a5a6,#7f8c8d); }
.btn-delete      { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.btn-submit      { background: linear-gradient(135deg,#3498db,#2980b9); }
.btn-approve     { background: linear-gradient(135deg,#1abc9c,#16a085); }
.btn-reject      { background: linear-gradient(135deg,#e67e22,#d35400); }
.btn-send-appr   { background: linear-gradient(135deg,#9b59b6,#8e44ad); }

/* ---------- BUTTON 1 TO 20 ---------- */
.btn-1  { background: linear-gradient(135deg,#1abc9c,#48c9b0); }
.btn-2  { background: linear-gradient(135deg,#3498db,#5dade2); }
.btn-3  { background: linear-gradient(135deg,#9b59b6,#af7ac5); }
.btn-4  { background: linear-gradient(135deg,#e67e22,#f0b27a); }
.btn-5  { background: linear-gradient(135deg,#e74c3c,#ec7063); }
.btn-6  { background: linear-gradient(135deg,#2ecc71,#58d68d); }
.btn-7  { background: linear-gradient(135deg,#34495e,#5d6d7e); }
.btn-8  { background: linear-gradient(135deg,#f1c40f,#f7dc6f); color:#2c3e50; }
.btn-9  { background: linear-gradient(135deg,#16a085,#45b39d); }
.btn-10 { background: linear-gradient(135deg,#d35400,#eb984e); }
.btn-11 { background: linear-gradient(135deg,#6c5ce7,#a29bfe); }
.btn-12 { background: linear-gradient(135deg,#00cec9,#81ecec); }
.btn-13 { background: linear-gradient(135deg,#fd79a8,#fab1c7); }
.btn-14 { background: linear-gradient(135deg,#0984e3,#74b9ff); }
.btn-15 { background: linear-gradient(135deg,#e84393,#ff7675); }
.btn-16 { background: linear-gradient(135deg,#00b894,#55efc4); }
.btn-17 { background: linear-gradient(135deg,#2d3436,#636e72); }
.btn-18 { background: linear-gradient(135deg,#f39c12,#f8c471); color:#2c3e50; }
.btn-19 { background: linear-gradient(135deg,#c0392b,#e17055); }
.btn-20 { background: linear-gradient(135deg,#273c75,#40739e); }

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (max-width: 1024px) {
  .btn-container {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 768px) {
  .btn-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .apex-btn {
    padding: 12px 28px;
    font-size: 15px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .btn-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .apex-btn {
    padding: 10px 20px;
    font-size: 14px;
    gap: 4px;
  }
}
