/* Responsive Adjustments */
@media (max-width: 768px) {

    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        flex: 1 1 100%;
    }
    
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    html {
        font-size: 12px;
    }
}
/* home td media style */

@media (max-width: 768px) {
    td:nth-child(2) {
    max-width: 100px;
    }
  }
  @media (max-width: 768px) {
    th, td {
      font-size: 14px;
      padding: 10px;
    }
  }

@media (max-width: 768px) {
  .table-container {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-container thead {
    display: none; /* إخفاء رؤوس الجدول */
  }

  .table-container tbody,
  .table-container tr,
  .table-container td {
    display: block;
    width: 100%;
  }

  .table-container tr {
    background: #1e1e1e;
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .table-container td {
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #333;
    position: relative;
  }

  .table-container td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
  }


  .table-container td[data-label="Last Check"] {
    display: none;
  }


  .table-container td[data-label="URL"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* oo */
/* home td media style */
  /* للشاشات الكبيرة (كمبيوتر) */
.table-container {
  display: table;
  width: 100%;
}
.card-list {
  display: none;
}

/* للشاشات الصغيرة (موبايل) */
@media (max-width: 768px) {
  .table-container {
    display: none;
  }
  .card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
  }
  
  .link-card {
    background: #2c2c3e;
    padding: 15px;
    border-radius: 8px;
    color: white;
  }
  
  .link-card p {
    margin: 5px 0;
    font-size: 14px;
  }
  
  .status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
  }
  .status.active { background: #28a745; }
  .status.down { background: #dc3545; }
}
@media (max-width: 768px) {
  .table-container,
  .table-container thead,
  .table-container tbody,
  .table-container th,
  .table-container td,
  .table-container tr {
    display: block;
    width: 100%;
  }

  .table-container thead {
    display: none;
  }

  .table-container td {
    position: relative;
    padding-left: 50%;
    text-align: left;
    border-bottom: 1px solid #444;
  }

  .table-container td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #bbb;
  }
}
@media (max-width: 600px) {
  .popup-content {
    width: 95%;
    padding: 15px;
  }

  .popup-title {
    font-size: 18px;
  }

  .popup-input {
    font-size: 13px;
  }

  .popup-save-btn {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .horizontal-container {
    flex-direction: column; /* Stack items vertically on smaller screens */
  }
}
/* screan controler */
@media screen and (max-width: 768px) {
  .table-container {
    display: none;
  }
  .cards-container {
    display: block;
    padding: 10px;
  }
}
