 /* Calculator Container */
  .calculator-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
  }
  
  /* Key Metrics Banner - NEW */
  .key-metrics-banner {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(45deg, #1a3755, #3498db);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
  }
  
  .metric-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 45%;
  }
  
  .metric-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
  }
  
  .metric-value {
    font-size: 32px;
    font-weight: 700;
  }
  
  /* Warning Message */
  .warning-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
  }
  
  .warning-message i {
    color: #f39c12;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  /* Room Templates Banner - NEW */
  .room-templates {
    display: flex;
    align-items: center;
    background-color: #f1f9fe;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    border: 1px solid #d1e6f6;
  }
  
  .template-title {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 20px;
    white-space: nowrap;
  }
  
  .template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .template-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;  /* Set minimum width to make buttons equal size */
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .template-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
  }
  
  .calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  /* Panels */
  .results-panel, 
  .appliance-panel {
    flex: 1;
    min-width: 300px;
  }
  
  .panel-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    min-height: 580px;
    overflow: hidden;
  }

  .results-panel .panel-card, .appliance-panel .panel-card{
    min-height: 650px;
  }

  .card-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Results Section */
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .result-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* transition: transform 0.4s ease; */
  }
  
  
  .result-item:hover {
    transform: translateY(-2px);
  }
  
  .result-icon {
    margin-right: 15px;
  }
  
  .result-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  
  .result-info {
    flex: 1;
  }
  
  .result-label {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .result-value {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
  }

  .result-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #2c3e50;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 250px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.4s ease; */
    pointer-events: none;
  }
  
  /* Triangle arrow for tooltip */
  .result-tooltip:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
  }
  
  /* Show tooltip when active */
  .result-tooltip.active {
    opacity: 1;
    z-index: 999999999;
    visibility: visible;
  }

  /* Handle overflow for items close to the right edge */
.result-item .result-tooltip {
  left: auto;
  right: 0;
}

.result-item .result-tooltip:before {
  left: auto;
  right: 20px;
}

/* Add highlight effect to result item when hovering */
.result-item:hover {
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
  border-left: 3px solid #3498db;
}
  
  /* Summary Table */
  .usage-summary {
    padding: 20px;
  }
  
  .summary-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .summary-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
  }
  
  .summary-table td:first-child {
    color: #2c3e50;
    font-weight: 500;
  }
  
  .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
  }
  
  /* Selected Appliances Table */
  .selected-appliances {
    padding: 0px;
    max-height: 580px;
    overflow-y: auto;
  }
  
  .appliance-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
  }
  
  .appliance-table th {
    background-color: #f1f1f1;
    padding: 12px 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
  }
  
  .appliance-table tr {
    border-bottom: 1px solid #eee;
  }
  
  .appliance-table td {
    padding: 12px 8px;
    vertical-align: middle;
  }

  .appliance-table tr td:first-child input{
    width: 100%;
    font-size: 16px;
    text-align: left;
  }
  
  .appliance-table input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
  }
  
  .remove-btn:hover {
    background-color: #c0392b;
  }
  
  /* Empty state message for appliance table */
  .empty-appliance-message {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
  }
  
  .empty-appliance-message i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: #bdc3c7;
  }
  
  /* Action Buttons */
  .action-buttons {
    display: flex;
    gap: 10px;
  }
  
  .action-btn {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
  }
  
  .action-btn:hover {
    background-color: #e0e0e0;
  }
  
  .action-btn.primary {
    background-color: #3498db;
    color: white;
  }
  
  .action-btn.primary:hover {
    background-color: #2980b9;
  }
  
  /* Appliance Selection */
  .appliance-search {
    padding: 20px 20px 10px 20px;
  }
  
  .search-container {
    position: relative;
  }
  
  .search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
  }
  
  .search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  }
  
  .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
  }
  
  /* Category Filter */
  .category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 20px 20px;
  }
  
  .category-btn {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .category-btn:hover {
    background-color: #e0e0e0;
  }
  
  .category-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
  }
  
  /* Appliance Grid */
  .appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 20px 20px 20px;
    max-height: 400px;
    overflow-y: auto;
  }
  
  .appliance-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .appliance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .appliance-item.active {
    border-color: #3498db;
    background-color: #ebf5fb;
  }
  
  .appliance-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    object-fit: contain;
  }
  
  .appliance-label {
    font-size: 12px;
    color: #555;
    line-height: 1.3;
  }
  
  
  /* Tips Section */
  .tips-content {
    padding: 20px;
  }
  
  .tip-item {
    display: flex;
    margin-bottom: 15px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .tip-icon {
    color: #3498db;
    font-size: 20px;
    margin-right: 15px;
  }
  
  .tip-text {
    font-size: 14px;
    color: #555;
  }
  
  .advanced-mode-btn {
    display: block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 12px;
    margin: 0 20px 20px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
  }
  
  .advanced-mode-btn:hover {
    background-color: #2980b9;
  }

  /* Request a Quote Button Style */
  .quote-button-box{
    margin: 0 20px 20px 20px;
  }

  .quote-request-floating-btn-2 {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border: none;
    font-size: 16px;
    gap: 10px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-weight: 600;
    opacity: 1;
    transform: translateY(0);
  }

  .quote-request-floating-btn-2:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

  .quote-button:hover {
    background: linear-gradient(45deg, #2980b9, #1a5276);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .quote-button i {
    margin-right: 8px;
  }
  
  /* Loading Overlay */
  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .appliance-table td{
      font-size: 11px;
      padding: 8px 4px;
    }
    
    .warning-message {
      font-size: 14px;
      padding: 10px;
    }
    
    .quote-request-floating-btn-2{
      bottom: 15px;
      right: 15px;
      padding: 12px 15px;
    }

    .quote-button-box{
      margin: 0 5px 5px 5px;
    }

    .appliance-table td{
      font-size: 12px;
    }

    .appliance-table tr td:first-child input{
      font-size: 12px;
    }

    .result-tooltip {
      width: 200px;
      font-size: 13px;
      padding: 10px;
    }

    .site{
        padding: 5px;
    }

    .card-header{
        font-size: 15px;
    }

    .action-buttons{
        width: 55%;
        justify-content: flex-end;
        flex-direction: row !important;
    }

    .action-btn{
        font-size: 10px;
    }

    .calculator-container{
        padding: 0px;
    }

    .results-grid{
        padding: 10px;
    }

    .usage-summary{
        padding: 2px;
    }

    .appliance-grid{
        padding: 5px;
    }

    .appliance-search{
        padding: 5px ;
    }

    .selected-appliances{
        padding: 1px;
    }

    .category-filter{
        gap: 5px;
        padding: 5px;
    }

    .template-btn {
        flex: 0 0 35%;
    }

    .tips-content{
        padding: 5px;
    }

    .advanced-mode-btn{
        margin: 0 5px 5px 5px;
    }

    .summary-table td{
        font-size: 13px;
    }

    .form-control{
        font-size: 12px;
    }

    .appliance-table th{
        font-size: 10px;
    }

    .empty-appliance-message{
      font-size: 12px;
    }
  }

  @media (max-width: 1200px) {
    .appliance-panel{
      display: flex;
      flex-direction: column-reverse;
    }

    .key-metrics-banner {
      flex-direction: column;
      gap: 15px;
    }
    
    .panel-card{
      min-height: 0 !important;
    }
    
    .metric-item {
      width: 100%;
    }
    
    .room-templates {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
    
    .calculator-wrapper {
      flex-direction: column;
      flex-wrap: nowrap;
      gap: 0;
    }
    
    .results-grid {
      grid-template-columns: 1fr;
    }

    .appliance-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .category-filter {
      overflow-x: auto;
    }
    
    .category-btn {
      padding: 8px 9px;
      flex-shrink: 0;
    }
  }

@media (max-width: 450px) {
  .form-control {
    font-size: 10px;
  }

  .appliance-table td{
    font-size: 10px;
  }

  .appliance-table input{
    font-size: 11px;
    width: 35px;
  }

  .result-tooltip {
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .result-tooltip:before {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .template-btn{
      min-width: 140px;
  }
}