/* gulshan-international - support.css */
:root {
  --primary-color: #0b2545;
  --secondary-color: #f4d35e;
  --accent-color: #ee964b;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --light-text: #f8f9fa;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.support-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #134074 100%);
  color: var(--light-text);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.support-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(244, 211, 94, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.support-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.support-hero h1 span {
  color: var(--secondary-color);
  font-size: 1.8rem;
  display: block;
  font-weight: 600;
  margin-top: 5px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

@media (max-width: 992px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-features-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-color);
}

.support-features-card h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.feature-list-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* Auth forms */
.auth-box {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--secondary-color);
}

.auth-tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid #e9ecef;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Dashboard styles */
.dashboard-container {
  display: none; /* Shown dynamically via JS */
  margin: 40px 0;
}

.dashboard-header {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-left: 5px solid var(--secondary-color);
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

.user-badge {
  background: var(--light-bg);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
}

/* Machine sensor layout */
.machine-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .machine-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sensor-card {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.sensor-card:hover {
  transform: translateY(-5px);
}

.sensor-card .label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sensor-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sensor-card i {
  float: right;
  font-size: 1.8rem;
  opacity: 0.2;
}

.sensor-card.warning {
  border-left: 4px solid var(--accent-color);
}

.sensor-card.success {
  border-left: 4px solid #2ec4b6;
}

.calculator-card {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.calculator-card h4 {
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.calc-stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}

.calc-stat span.bold {
  font-weight: 700;
  color: var(--secondary-color);
}

/* Troubleshooting Accordion */
.accordion {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 40px;
}

.accordion-item {
  border-bottom: 1px solid #e9ecef;
  padding: 15px 0;
}

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

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.accordion-content {
  display: none;
  padding-top: 15px;
  color: #495057;
  line-height: 1.6;
}

/* Ticket form & tracker */
.ticket-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .ticket-section {
    grid-template-columns: 1fr;
  }
}

.ticket-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e9ecef;
}

.ticket-card h4 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.ticket-list {
  max-height: 350px;
  overflow-y: auto;
}

.ticket-item {
  padding: 15px;
  border-radius: 8px;
  background: var(--light-bg);
  margin-bottom: 12px;
  border-left: 4px solid var(--accent-color);
}

.ticket-item.Resolved {
  border-left-color: #2ec4b6;
}

.ticket-item h5 {
  margin-bottom: 5px;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
}

.ticket-status-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 50px;
  font-weight: 700;
}

.ticket-status-badge.Open {
  background: #ffe3e0;
  color: #ff3838;
}

.ticket-status-badge.Resolved {
  background: #e1f7f5;
  color: #2ec4b6;
}

.gps-info {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 5px;
}
