/* ============================================================
   Cubic Inches Calculator Styling
   How to Calculate Cubic Inches
   Scenic IT Solutions Theme Styling
   ============================================================ */

.cubic-calc-wrapper {
  width: 100%;
  color: #f0f0f8;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Shape Tabs */
.cubic-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(18, 19, 28, 0.95);
  border: 1px solid #282a3c;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.cubic-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #9d9db5;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cubic-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.cubic-tab-btn.active {
  background: linear-gradient(135deg, rgba(246, 139, 31, 0.15) 0%, rgba(2, 120, 168, 0.2) 100%);
  color: #F68B1F;
  border-color: rgba(246, 139, 31, 0.4);
  box-shadow: 0 4px 15px rgba(246, 139, 31, 0.15);
  font-weight: 600;
}

/* Grid Layout */
.cubic-grid-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 1080px) {
  .cubic-grid-layout {
    grid-template-columns: 1fr;
  }
}

.cubic-card {
  background: rgba(16, 17, 24, 0.95);
  border: 1px solid #282a3c;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.cubic-card-header {
  border-bottom: 1px solid #252738;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.cubic-card-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cubic-card-subtitle {
  font-size: 13.5px;
  color: #9292a8;
  margin: 0;
  line-height: 1.5;
}

.cubic-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .cubic-form-row {
    grid-template-columns: 1fr;
  }
}

.cubic-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cubic-field label {
  font-size: 13px;
  font-weight: 600;
  color: #d6d6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cubic-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cubic-input-suffix {
  position: absolute;
  right: 14px;
  color: #8c8ca5;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.cubic-input,
.cubic-select {
  width: 100%;
  background: #11121a;
  border: 1.5px solid #2b2d40;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.cubic-input:focus,
.cubic-select:focus {
  border-color: #0099E5;
  background: #151624;
  box-shadow: 0 0 0 3px rgba(0, 153, 229, 0.15);
}

.cubic-input.has-suffix {
  padding-right: 56px;
}

/* Sticky Results Sidebar */
.cubic-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cubic-hero-card {
  background: linear-gradient(180deg, #171826 0%, #0d0e17 100%);
  border: 1px solid #32354c;
  border-radius: 20px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.cubic-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F68B1F 0%, #0099E5 100%);
}

.cubic-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #0099E5;
  background: rgba(0, 153, 229, 0.12);
  border: 1px solid rgba(0, 153, 229, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.cubic-hero-volume {
  text-align: center;
  padding: 8px 0 18px 0;
  border-bottom: 1px solid #26283b;
}

.cubic-hero-val {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.cubic-hero-val span {
  background: linear-gradient(135deg, #ffffff 0%, #F68B1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cubic-hero-unit {
  font-size: 16px;
  font-weight: 600;
  color: #0099E5;
}

/* Secondary Conversions List */
.cubic-conv-list {
  background: #11121b;
  border: 1px solid #25273b;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}

.cubic-conv-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #1e202e;
}

.cubic-conv-item:last-child {
  border-bottom: none;
}

.cubic-conv-name {
  color: #9292ab;
}

.cubic-conv-num {
  font-weight: 700;
  color: #00ffaa;
  font-family: monospace;
  font-size: 13.5px;
}

.cubic-btn-primary {
  background: linear-gradient(135deg, #F68B1F 0%, #d87311 100%);
  color: #000000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(246, 139, 31, 0.3);
}

.cubic-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(246, 139, 31, 0.45);
}

.cubic-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1c1d29;
  border: 1px solid #F68B1F;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.cubic-toast.show {
  transform: translateY(0);
  opacity: 1;
}
