/* ==========================================================================
   Traxxis Dashboard - Custom Styles
   ========================================================================== */

/* ========== Root Variables ========== */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #20c997;
  --danger-color: #dc3545;

  --bg-color: #f8f9fa;
  --bg-light: #ffffff;
  --bg-dark: #343a40;

  --text-color: #212529;
  --text-light: #6c757d;

  --border-radius: 0.75rem;
  --transition-speed: 0.3s;
}

/* ========== Global Resets & Utilities ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--accent-color);
}

/* Scrollbar Styling (Webkit Only) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

/* ========== Headers & Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
}

/* ========== Layout & Spacing ========== */
.container-fluid {
  padding: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ========== Cards & Glassmorphism ========== */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed);
}
.card:hover {
  transform: translateY(-5px);
}
.card-glass {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

/* ========== Buttons ========== */
.btn-custom {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: background-color var(--transition-speed);
}
.btn-custom:hover {
  background-color: #0056b3;
}


/* ========== Sidebar Styling ========== */
.sidebar {
  background-color: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  padding: 1rem;
}
.sidebar a {
  color: #fff;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
}
.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========== Content Area ========== */
#content {
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
}

/* ========== DateTime Badge ========== */
#currentDateTime {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  background-color: #e9ecef;
  border-radius: var(--border-radius);
  display: inline-block;
}

/* ========== Forms ========== */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ========== Alerts ========== */
.alert-custom {
  border-left: 4px solid var(--primary-color);
  background-color: #eef3ff;
  padding: 1rem;
  border-radius: var(--border-radius);
}

/* ========== Animations ========== */
.fade-in {
  animation: fadeIn ease-in 0.5s;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive Tweaks ========== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 1000;
  }
  #content {
    margin-top: 60px;
  }
}



/* =========== LOGIN PAGE ================= */

/* Reset and font */

.login-container {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 120px;
  margin-bottom: 20px;
  animation: zoomIn 1.2s ease;
}

@keyframes zoomIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#datetime {
  color: #ffffffb3;
  font-size: 14px;
  margin-bottom: 25px;
}

.input-group {
  margin-bottom: 20px;
}

input.form-control,
select.form-select {
  background-color: rgba(255, 255, 255, 0.15);
  color: #040202;
  border: 1px solid #ccc; /* <-- use a visible grey or primary color */
  border-radius: 10px;
}

input.form-control:focus,
select.form-select:focus {
  border-color: #4fc3f7;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #070505;
}

label {
  color: #333; /* darker for visibility */
  font-weight: 500;
  font-size: 14px;
}


.form-check-label {
  color: #aaa;
  font-size: 13px;
}

.btn-signin {
  background: #4fc3f7;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 50px;
  padding: 10px 20px;
  transition: 0.3s ease;
}

.btn-signin:hover {
  background: #29b6f6;
  transform: scale(1.05);
}


/* LOGIN PAGE */

/* Login Page Wrapper */
.login-wrapper {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  padding: 2rem;
}

/* Login Box */
.login-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo {
  width: 120px;
  margin-bottom: 20px;
  animation: zoomIn 1.2s ease;
}

@keyframes zoomIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Date & Time */
.login-datetime {
  color: #ffffffb3;
  font-size: 14px;
  margin-bottom: 25px;
}

/* Login Input Group */
.login-input-group {
  margin-bottom: 20px;
}

/* Login Input Fields */
.login-input {
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: 0.3s ease;
}

.login-input::placeholder {
  color: #eee;
}

.login-input:focus {
  border-color: #4fc3f7;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #fff;
}

/* Override .form-check-label for dark theme */
.form-check-label {
  color: #ccc;
  font-size: 13px;
}



/* Smart error modal */
#loginErrorModal .modal-content {
  background-color: #1e1e2f;
  color: white;
  border: 2px solid #ff4c4c;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
}

#loginErrorModal h5 {
  color: #ff4c4c;
}



/* Custom Navbar Style */

#sidebar {
    overflow-y: auto;
    height: calc(100vh - 60px); /* Adjust if your top navbar is 60px */
}


.custom-navbar {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  height: 70px; /* Smaller height */
  padding: 0 1rem;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1040;
}

.custom-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.custom-navbar .btn i {
  vertical-align: middle;
}

.custom-navbar .dropdown-menu {
  font-size: 0.875rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Adjust badge inside bell */
.custom-navbar .badge {
  font-size: 0.6rem;
  padding: 0.25em 0.4em;
}

/* Optional: Hide brand on small devices */
@media (max-width: 576px) {
  .custom-navbar .navbar-brand {
    display: none;
  }
}


/* ========= HOME VIEW ========== */
.filter-bar {
  background: #f8f9fa;
  border-left: 5px solid #0d6efd;
  animation: slideFadeIn 0.7s ease-in-out;
}

.info-card {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.card-title {
  color: #343a40;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

@keyframes slideFadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ==ADD PLAN VIEW == */
.plan-form input,
.plan-form textarea,
.plan-form select {
  border-radius: 10px;
  border: 1px solid #ddd;
}

.plan-form input:focus,
.plan-form textarea:focus,
.plan-form select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* === ACTIVATION TYPE == */

.activation-form .form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color .3s;
}
.activation-form .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40,167,69,.25);
}
.btn-success {
  border-radius: 50px;
  transition: transform .2s;
}
.btn-success:hover {
  transform: scale(1.05);
}

/*  ===   KIOSK == */

.kiosk-form .form-control, .kiosk-form .form-select {
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: border-color .3s;
}
.kiosk-form .form-control:focus, .kiosk-form .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
.kiosk-form button {
  border-radius: 50px;
  transition: transform .2s;
}
.kiosk-form button:hover {
  transform: scale(1.05);
}


/* --- ADD SIM STOCK --- */

.sim-form input, .sim-form select {
  border-radius: 12px;
  border: 1px solid #ddd;
  background-color: rgba(255, 255, 255, 0.15);
  color: #222;
}

.sim-form input:focus, .sim-form select:focus {
  border-color: #4fc3f7;
  box-shadow: none;
}

.sim-form label {
  color: #333;
  font-weight: 500;
}


/*--- post paid sale --- */

/* Container */
.postpaid-sale-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Section Headings */
.postpaid-sale-header {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

/* Form Groups */
.postpaid-sale-group {
  margin-bottom: 18px;
}

.postpaid-sale-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: block;
}

.postpaid-sale-input,
.postpaid-sale-select,
.postpaid-sale-file {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s ease-in-out;
  background: white;
}

.postpaid-sale-input:focus,
.postpaid-sale-select:focus {
  border-color: #007bff;
  outline: none;
}

/* File input preview */
.postpaid-sale-file-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  display: block;
}

/* Button */
.postpaid-sale-submit-btn {
  background: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out;
  width: 100%;
}

.postpaid-sale-submit-btn:hover {
  background: #0056b3;
  cursor: pointer;
}

/* Modal Customizations */
.modal .postpaid-sale-modal-body {
  font-size: 1rem;
  color: #222;
  text-align: center;
  padding: 20px;
}

/* SIM Section Toggle */
#simManualContainer {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .postpaid-sale-container {
    padding: 20px;
  }

  .postpaid-sale-header {
    font-size: 1.4rem;
  }

  .postpaid-sale-submit-btn {
    font-size: 15px;
  }
}
