/* styles.css */

/* Reset some default styles */
body, h1  {
  margin: 0;
  padding: 0;
  color: white;
}

/* Reset some default styles */
body, p, ul, ol {
  margin: 0;
  padding: 0;
  color: black;
}

/* Set a background color for the body */
body {
  background-image: url("abstract.jpg");
  background-size: cover; /* Adjusts the image size to cover the entire screen */
  background-repeat: repeat; /* Allows the image to repeat both horizontally and vertically */
  height: 100vh; /* Set the height of the body to 100% of the viewport height */
  margin: 0; /* Remove any default margin */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
/* Tab Navigation Styles */
.tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.tab-button {
  padding: 12px 20px;
  background-color: #f5f5f5;
  color: #333;
  border: 2px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-button:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
  box-shadow: 0px 2px 8px rgba(0, 123, 255, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

thead {
  background-color: #f5f5f5;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  font-weight: bold;
}

/* Style the date columns */
.table-cell.date {
  white-space: nowrap;
  padding: 8px 16px;
  text-align: center;
}

/* Style the "Edit" button */
.editButton {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.editButton:hover {
  background-color: #2980b9;
}

/* Hide the edit form initially */
.hidden {
  display: none;
}

.duplicate-domain {
  color: red;
  font-weight: bold;
}

/* ... Other existing styles ... */

/* Status badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

.status-active {
  background: #e8f5e9;
  color: #388e3c;
}

.status-processing {
  background: #fff3e0;
  color: #f57c00;
}

.status-cancelled {
  background: #ffebee;
  color: #c62828;
}

.status-bought {
  background: #e3f2fd;
  color: #1976d2;
}

.status-pending {
  background: #fff9c4;
  color: #f9a825;
}

.status-pending_sites {
  background: #f3e5f5;
  color: #7b1fa2;
}

.status-company_use {
  background: #e0f2f1;
  color: #00796b;
}

.status-no_payments {
  background: #fce4ec;
  color: #c2185b;
}

/* Row colors based on expiry */
.row-expired {
  background: #ffebee !important;
}

.row-expiring-soon {
  background: #fff9c4 !important;
}
/* Basic styling for the container */
.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

/* Button styling */
button {
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Progress bar styling */
.progress-container {
  width: 100%;
  background-color: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-bar {
  height: 20px;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.5s;
}

.progress-text {
  text-align: center;
  padding: 5px;
  color: #fff;
  background-color: #4caf50;
  position: relative;
  top: -20px;
  width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

#progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

#progress-bar {
    width: 0%;
    height: 30px;
    background-color: #4caf50;
    text-align: center;
    line-height: 30px;
    color: white;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Main Tab Navigation */
.main-tab-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-tab-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #333;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-tab-button:hover {
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main-tab-button.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.main-tab-button.active:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Content Sections */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Table Section Styles */
.table-section {
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.table-section h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Table Sorting Indicator */
th[role="button"] {
  cursor: pointer;
  position: relative;
  user-select: none;
}

th[role="button"]:hover {
  background-color: #e8e8e8;
}

th[role="button"]::after {
  content: ' ▼';
  font-size: 0.8em;
  color: #999;
  margin-left: 5px;
}

th[role="button"][aria-sort="ascending"]::after {
  content: ' ▲';
  color: #007bff;
}

th[role="button"][aria-sort="descending"]::after {
  content: ' ▼';
  color: #007bff;
}

/* Button Styles */
.edit-button, .save-button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 2px;
}

.edit-button {
  background-color: #007bff;
  color: white;
}

.edit-button:hover {
  background-color: #0056b3;
}

.save-button {
  background-color: #28a745;
  color: white;
}

.save-button:hover {
  background-color: #218838;
}

/* Input fields in table */
table input[type="text"],
table input[type="date"],
table select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

table input[type="text"]:focus,
table input[type="date"]:focus,
table select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Days Left Column Styling */
table tbody td:nth-child(6) {
  font-weight: bold;
}

/* Color code days left */
table tbody tr td:nth-child(6) {
  color: #388e3c; /* Green for normal */
}

/* If there's a way to detect negative values, color them red */
table tbody tr[data-days-left="negative"] td:nth-child(6) {
  color: #c62828; /* Red for expired */
}
