/* style.css - Custom styles for WpSender */
:root {
  --bg: rgb(241 246 254);
  --text: #212529;
  --accent: #20c997;
  /* Teal */
}

body {
  background-color: rgb(241 246 254);
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Custom Sleek Scrollbar for Sub-Menu */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dash fieldset legend {
  font-size: 15px;
  background: #fff;
  float: left;
  top: -13px;
  position: relative;
  border: 1px solid #ddd;
  width: 200px;
  text-align: center;
}

.dash fieldset {
  padding: 0px 10px;
  border: 1px solid #dae7f3;
  margin: 2rem 0rem;
  background: #e8f4ff;
}

#twilioReportTable,
#selectAllModules {
  white-space: nowrap;
}

.body-full {
  white-space: pre-wrap;
  margin-top: 5px;
}

.table th {
  background-color: #fff;
}

.table td,
.table th {
  padding: 6px !important;
  font-size: 13px;
}

.ispexe-logo {
  height: 40px;
}

table.dataTable {
  background: #fffefe;
}

/* Extra small button variant */
.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  gap: 0.35rem;
}

/* Optional: smaller icon size */
.btn-xs i {
  font-size: 0.85rem;
}

/* Base input reset */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
.form-control {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

/* Label styling */
label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
  display: block;
}

/* Optional: compact form group */
.form-group {
  margin-bottom: 0.75rem;
}

/* Optional: inline icon support */
.input-icon {
  position: relative;
}

.input-icon input {
  padding-left: 2rem;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Container */
.floating-group {
  position: relative;
  margin-bottom: 1rem;
}

/* Input field */
.floating-group input,
.floating-group textarea,
.floating-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Label */
.floating-group label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #6c757d;
  pointer-events: none;
  transition: all 0.2s ease;
  background-color: transparent;
}

/* Focused or filled */
.floating-group input:focus+label,
.floating-group input:not(:placeholder-shown)+label,
.floating-group textarea:focus+label,
.floating-group textarea:not(:placeholder-shown)+label,
.floating-group select:focus+label,
.floating-group select:not([value=""])+label {
  top: 0.3rem;
  font-size: 0.65rem;
  color: #20c997;
  background-color: #f8f9fa;
  padding: 0 0.25rem;
}

/* Optional: focus ring */
.floating-group input:focus,
.floating-group textarea:focus,
.floating-group select:focus {
  border-color: #20c997;
  box-shadow: 0 0 0 2px rgba(32, 201, 151, 0.25);
  outline: none;
}

/* Target DataTables search input */
.dataTables_filter {
  position: relative;
  float: right;
}

.dataTables_filter label {
  position: relative;
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
}

/* Floating label container */
.dataTables_filter input[type="search"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  height: 1em;
  color: #212529;
}

.animate-slide-down {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#campaign i {
  position: absolute;
  font-size: 5rem;
  right: 0;
  top: 8px;
  opacity: 0.6;
}

#campaign:hover i {
  opacity: 1;
}

#cardOverlay,
.cardOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

@keyframes flyMessage {
  0% {
    transform: translateX(-100vw) translateY(0) rotate(0deg);
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    transform: translateX(100vw) translateY(-30px) rotate(360deg);
    opacity: 0;
  }
}

.flying-icon {
  position: absolute;
  top: calc(20% + var(--offset, 0px));
  left: -60px;
  font-size: 1.8rem;
  color: rgba(0, 123, 255, 0.3);
  animation: flyMessage var(--speed, 6s) linear forwards;
  pointer-events: none;
  z-index: 0;
}

.alamin {
  padding: 0px !important;
  background: #484b4a;
  overflow: hidden;
}

.alamin img {
  width: 79%;
  height: auto;
  background: #484b4a;
}

.card {
  box-shadow: none !important;
  border: none;
  border-radius: 15px;
}

.header_mini {
  padding: 8px 10px;
  border-radius: 10px;
  background-color: #ebf1fb;
}

/* new style twilio */
.main_cms {
  min-height: 100vh;
  /* Twilio Style Background Pattern Setup */
  background-image: url('assets/images/bg.png');
  background-repeat: no-repeat;
  background-position: top right;
  /* Pattern always stays at top right corner */
  background-size: 400px auto;
  /* Limits image size so it doesn't stretch huge on big screens */
  background-attachment: local;
  /* Smooth scroll behavior */
}

/* dashbaord */
/* Twilio Console Design Tokens */
:root {
  --tw-bg-slate: #f4f6f8;
  --tw-navy: #121c2d;
  --tw-blue: #0263e0;
  --tw-border: #e1e6ed;
  --tw-card-bg: #ffffff;
  --tw-muted: #52606d;
  --tw-success: #00875a;
  --tw-success-bg: #e6f4ea;
  --tw-warning: #f59e0b;
  --tw-warning-bg: #fef3c7;
  --tw-danger: #d9381e;
  --tw-danger-bg: #fde8e8;
  --tw-primary-bg: #e8f2ff;
}

/* Twilio Container Widget */
.twilio-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.twilio-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tw-navy);
  margin: 0;
}

/* Metric Cards */
.twilio-metric-card {
  background: #ffffff;
  border: 1px solid var(--tw-border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s ease-in-out;
}

.twilio-metric-card:hover {
  border-color: #cbd5e1;
}

.twilio-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Specific Variant Styles */
.twilio-metric-card.is-success {
  border-left: 4px solid var(--tw-success);
}

.twilio-metric-card.is-success .twilio-metric-icon {
  background: var(--tw-success-bg);
  color: var(--tw-success);
}

.twilio-metric-card.is-warning {
  border-left: 4px solid var(--tw-warning);
}

.twilio-metric-card.is-warning .twilio-metric-icon {
  background: var(--tw-warning-bg);
  color: var(--tw-warning);
}

.twilio-metric-card.is-danger {
  border-left: 4px solid var(--tw-danger);
}

.twilio-metric-card.is-danger .twilio-metric-icon {
  background: var(--tw-danger-bg);
  color: var(--tw-danger);
}

.twilio-metric-card.is-primary {
  border-left: 4px solid var(--tw-blue);
}

.twilio-metric-card.is-primary .twilio-metric-icon {
  background: var(--tw-primary-bg);
  color: var(--tw-blue);
}

/* Progress Bar Custom */
.progress-twilio {
  height: 16px;
  border-radius: 6px;
  background-color: #e2e8f0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
}

.mgs_widgets button {
  background: transparent !important;
  color: #000 !important;

}

.mgs_widgets button.active {
  border-left-color: blue !important;
  color: #000 !important;

}

.btn-check:checked+.custom-plan-card {
  border-color: #0263e0 !important;
  background-color: #f0f7ff !important;
  box-shadow: 0 0 0 1px #0263e0;
}

/* Twilio Card Aesthetics */
.twilio-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Twilio Brand Solid Blue Button */
.btn-twilio-primary {
  background-color: #0263e0;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #0263e0;
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-twilio-primary:hover {
  background-color: #014cb3;
  border-color: #014cb3;
  color: #ffffff;
}

/* Twilio Brand Outline Blue Button */
.btn-twilio-outline {
  border: 1px solid #0263e0;
  color: #0263e0;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  background: transparent;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-twilio-outline:hover {
  background-color: #0263e0;
  color: #ffffff;
}

/* Custom Radio Plan Card Checked State */
.custom-plan-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.comp-card,
.widget-visitor-card,
.BG_CARDS {
  background-image: url(assets/images/bg.png);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 201px auto;
  transition: all 1s;
}

.BG_CARDS:hover {
  background-size: 390px auto;
}

/* Top Utilities Bar */
.top-utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1.5rem;
}

.account-switcher select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: #0e1e38;
  cursor: pointer;
  padding-right: 1rem;
  font-size: 0.85rem;
}

.account-switcher select:focus {
  outline: none;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.utility-icon {
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Typography & Cards */
.hero-title {
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #0e1e38 40%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.twilio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}

.credential-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-family: monospace;
  color: #334155;
  font-size: 0.8rem;
}

.btn-twilio-outline {
  border: 1px solid #0284c7;
  color: #0284c7;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  background: transparent;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-twilio-outline:hover {
  background-color: #0284c7;
  color: #ffffff;
}

#messageList {
  max-height: 300px;
  /* Adjust max height as needed */
  overflow-y: auto;
  overflow-x: hidden;
}

/* senders */
/* Hero Action Card */
.tryout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-tryout {
  border: 1px solid #0263e0;
  color: #0263e0;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-tryout:hover {
  background-color: #0263e0;
  color: #ffffff;
}

/* ---------------------------------------------------- */
/* RIGHT SIDE SLIDE CANVAS MODAL (Twilio Style)        */
/* ---------------------------------------------------- */

.offcanvas-right-twilio {
  width: 880px !important;
  /* Wide drawer size */
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  border: none;
  padding: 1.5rem 1rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Modal Close Button */
.btn-close-twilio {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-close-twilio:hover {
  color: #0e1e38;
}

/* Tabs Line */
.twilio-tabs {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.twilio-tab-btn {
  background: transparent;
  border: none;
  font-weight: 600;
  color: #64748b;
  padding: 0.6rem 0;
  margin-right: 2rem;
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
}

.twilio-tab-btn.active {
  color: #0263e0;
}

.twilio-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0263e0;
  border-radius: 3px 3px 0 0;
}

/* Soft Form Inputs */
.twilio-input {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #334155;
  transition: all 0.15s ease;
}

.twilio-input:focus {
  background-color: #ffffff;
  border-color: #0263e0;
  box-shadow: 0 0 0 3px rgba(2, 99, 224, 0.1);
  outline: none;
}

/* Right Column Preview Box */
.preview-box {
  background-color: #f1f5f9;
  border-radius: 16px;
  height: calc(100% - 35px);
  min-height: 320px;
  padding: 1.5rem;
}

.preview-toggle-btn {
  background-color: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  display: inline-flex;
}

.preview-toggle-btn button {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  color: #64748b;
}

.preview-toggle-btn button.active {
  background-color: #ffffff;
  color: #0e1e38;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bg-body-tertiary,
#sidebar {
  background-color: #ecf1fa !important;
}

#sidebar {
  width: 250px;
}

#sidebar nav a {
  padding: 10px;
  color: #555;
  border-radius: 8px;
}

#sidebar nav a:hover,
#sidebar nav .active {
  background-color: #deebff;
  color: #000;
}

#sidebar .title {
  letter-spacing: 1.2px;
  padding: 10px 0px;
  font-weight: bold;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  margin-bottom: 1rem;
}

#railTab .nav-link {
  padding: 10px 15px;
}

#railTab .nav-link i {
  font-size: 15px;
  font-weight: bold;
}

@media (max-width: 991px) {
  .pc-container.main_cms {
    margin-left: 0 !important;
  }

  .header_mini {
    display: none;
  }
}

@media (max-width: 768px) {
  .header_mini {
    display: none;
  }
}