/* DomainPrice - Theme based on Templatemo Dashboard Template */

/* 1. CSS Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ebebeb;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; margin-bottom: 15px; }
h3 { font-size: 16px; }

a {
  color: #337ab7;
  text-decoration: none;
}
a:hover {
  color: #23527c;
  text-decoration: underline;
}

/* 2. Navbar */
.navbar {
  background-color: #333;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo h1 {
  color: white;
  font-size: 20px;
  margin: 12px 0;
}

.logo a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: #ccc !important;
  padding: 15px 10px;
  font-size: 14px;
  text-decoration: none !important;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: white !important;
}

.nav-admin {
  color: #bfe8a7 !important;
}

/* 3. Main Content */
.main-content {
  min-height: calc(100vh - 120px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px;
}

/* 4. Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 20px;
  background-color: white;
  margin: -25px -20px 25px -20px;
  border-bottom: 1px solid #ddd;
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 300;
}

/* 5. Search Section */
.search-section {
  text-align: center;
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 0;
  outline: none;
}

.search-input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 8px rgba(102,175,233,0.6);
}

/* 6. Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #337ab7;
  color: white;
}

.btn-primary:hover {
  background-color: #286090;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: #5bc0de;
  color: white;
}

.btn-secondary:hover {
  background-color: #31b0d5;
  color: white;
}

.btn-ghost {
  background-color: transparent;
  color: #337ab7;
  border: 1px solid #ccc;
}

.btn-ghost:hover {
  background-color: #e6e6e6;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* 7. TLD Grid */
.popular-tlds, .category-section {
  margin-bottom: 30px;
}

.tld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.tld-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s;
}

.tld-card:hover {
  background-color: rgb(191, 232, 167);
  border-color: rgb(191, 232, 167);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tld-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.tld-badge {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}

.category-title {
  font-size: 18px;
  color: #666;
  text-transform: capitalize;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 8. Tables */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #ddd;
}

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

.table thead th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.table tbody tr:hover {
  background-color: #f5f5f5;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: white;
}

.table-striped tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-hover tbody tr:hover {
  background-color: #f5f5f5;
}

.table-bordered {
  border: 1px solid #ddd;
}

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

/* 9. Price Styles */
.price {
  white-space: nowrap;
}

.price-register {
  color: #337ab7;
  font-weight: 700;
  font-size: 16px;
}

.price-na {
  color: #ccc;
  text-align: center;
}

.price small {
  color: #999;
  font-size: 12px;
}

.tld-link {
  font-weight: 600;
  color: #337ab7;
}

.provider-name {
  font-weight: 600;
}

/* 10. Provider Grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.provider-card, .provider-card-large {
  display: block;
  padding: 20px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s;
}

.provider-card:hover, .provider-card-large:hover {
  background-color: rgb(191, 232, 167);
  border-color: rgb(191, 232, 167);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.provider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.provider-info h3 {
  margin: 0;
  color: #333;
}

.provider-url, .provider-website {
  color: #999;
  font-size: 13px;
  margin: 0;
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.provider-header h3 {
  margin: 0;
  color: #333;
}

.provider-meta {
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.provider-meta p {
  margin-bottom: 8px;
}

.last-updated {
  color: #999;
  font-size: 12px;
  margin-top: 10px;
}

/* 11. Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
}

.badge-soft {
  background-color: rgba(51, 122, 183, 0.1);
  color: #337ab7;
  border: 1px solid rgba(51, 122, 183, 0.2);
}

/* 12. Page Headers */
.page-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h1 {
  margin: 0;
}

.back-link {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 13. Footer */
.site-footer {
  background-color: #333;
  color: #ccc;
  padding: 15px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-inner p {
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #999;
  font-size: 13px;
}

.footer-links a:hover {
  color: white;
}

/* 14. Admin Layout */
.admin-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 100px);
  margin: -25px -20px;
}

.admin-sidebar {
  width: 235px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.admin-sidebar .logo h2 {
  font-size: 16px;
  margin: 0;
  color: #333;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid #eee;
}

.sidebar-menu li a {
  display: block;
  padding: 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.sidebar-menu li a:hover {
  background-color: #e6e6e6;
  text-decoration: none;
}

.sidebar-menu li.active a {
  background-color: rgb(191, 232, 167);
  font-weight: 600;
}

.sidebar-menu li a i {
  margin-right: 8px;
  display: inline-block;
  width: 1.25em;
  text-align: center;
}

.admin-content {
  flex: 1;
  padding: 25px;
  background-color: white;
}

/* 15. Admin Forms */
.admin-form {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #66afe9;
  box-shadow: 0 0 8px rgba(102,175,233,0.6);
}

.form-group input[type="checkbox"] {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 16. Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #337ab7;
  margin-bottom: 5px;
}

.stat-card p {
  color: #666;
  font-size: 14px;
}

/* 17. Quick Actions */
.quick-actions {
  margin-bottom: 30px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* 18. Detail Card */
.detail-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-card p {
  margin-bottom: 10px;
}

.detail-card p:last-child {
  margin-bottom: 0;
}

/* 19. Alerts */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 0;
}

.alert-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #31708f;
}

.alert-success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

.alert-warning {
  background-color: #fcf8e3;
  border-color: #faebcc;
  color: #8a6d3b;
}

.alert-danger {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

/* 20. Pagination */
.pagination {
  display: flex;
  gap: 5px;
  margin-top: 20px;
}

.pagination a, .pagination span {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #337ab7;
}

.pagination .active {
  background-color: #337ab7;
  color: white;
  border-color: #337ab7;
}

/* 21. Responsive */
@media screen and (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    padding: 10px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .hero-section {
    padding: 20px 15px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .tld-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .provider-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-menu li {
    border-bottom: none;
    border-right: 1px solid #eee;
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }
}

/* 22. Flash Messages */
.flash {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 0;
}

.flash-info {
  background-color: #d9edf7;
  color: #31708f;
}

.flash-error {
  background-color: #f2dede;
  color: #a94442;
}

/* 23. Form Control */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

/* 24. Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
  display: inline-block;
}

.text-red-500 {
  color: #dc3545 !important;
}

/* 25. List styles for sidebar */
.list-group {
  margin-bottom: 20px;
}

.list-group-item {
  display: block;
  padding: 10px 15px;
  background-color: white;
  border: 1px solid #ddd;
  margin-bottom: -1px;
}

.list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.list-group-item:last-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.list-group-item.active {
  background-color: #337ab7;
  border-color: #337ab7;
  color: white;
}

/* 15. Comparison Table Mobile */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  white-space: nowrap;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 1;
  min-width: 60px;
}

.comparison-table thead th:first-child {
  background-color: #f5f5f5;
  z-index: 2;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .comparison-table th a {
    font-size: 11px;
  }

  .price-register {
    font-size: 12px;
  }

  .comparison-table small {
    font-size: 10px;
  }
}
