/* General Styles */
body {
  background-color: #212529;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Remove underline from all links */
a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.navbar-logo {
  height: 35px;
  width: auto;
}

.navbar-app-name {
  font-size: 1.25rem;
  font-weight: bold;
}

.card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  background-color: #2c3034;
  border-color: #495057;
}

.card-header {
  border-radius: 10px 10px 0 0 !important;
  font-weight: bold;
}

.btn-primary {
  background-color: #f48120;
  border-color: #f48120;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #f48120;
  border-color: #f48120;
}

.btn-secondary {
  background-color: #2c7cb0;
  border-color: #2c7cb0;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #2c7cb0;
  border-color: #2c7cb0;
}

/* Login Page */
.login-container {
  max-width: 400px;
  margin: 100px auto;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #f48120;
}

.login-logo .logo-img {
  height: 80px;
  width: auto;
}

.login-logo .app-name {
  font-weight: bold;
  color: #f48120;
  font-size: 1.5rem;
}

/* Dashboard Page */
.dashboard-stats {
  margin-bottom: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #f48120;
}

.stat-card h3 {
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-card p {
  color: #adb5bd;
  margin-bottom: 0;
}

/* Domain List */
.domain-card {
  margin-bottom: 15px;
}

.domain-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.domain-actions {
  display: flex;
  gap: 5px;
}

.ssl-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.ssl-off {
  background-color: #dc3545;
  color: white;
}

.ssl-flexible {
  background-color: #ffc107;
  color: black;
}

.ssl-full {
  background-color: #28a745;
  color: white;
}

.ssl-strict {
  background-color: #007bff;
  color: white;
}

/* DNS Records */
.dns-table th,
.dns-table td {
  vertical-align: middle;
}

.dns-type {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.dns-a {
  background-color: #007bff;
  color: white;
}

.dns-aaaa {
  background-color: #6610f2;
  color: white;
}

.dns-cname {
  background-color: #28a745;
  color: white;
}

.dns-txt {
  background-color: #fd7e14;
  color: white;
}

.dns-mx {
  background-color: #6f42c1;
  color: white;
}

.dns-ns {
  background-color: #20c997;
  color: white;
}

/* Firewall Rules */
.firewall-action {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.action-allow {
  background-color: #28a745;
  color: white;
}

.action-block {
  background-color: #dc3545;
  color: white;
}

.action-challenge {
  background-color: #ffc107;
  color: black;
}

.action-js_challenge {
  background-color: #17a2b8;
  color: white;
}

/* Profile Page */
.profile-card {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  background-color: #1a1d20;
  color: white;
  padding: 20px;
  border-radius: 10px 10px 0 0;
}

.profile-header h4 {
  margin-bottom: 0;
}

/* Dark Mode Dropdown Fixes */
.dropdown-menu {
  background-color: #2c3034;
  border-color: #495057;
}

.dropdown-item {
  color: #dee2e6;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #2c3034;
  color: #dee2e6;
}

.dropdown-divider {
  border-color: #495057;
}

/* Footer Link Styles */
footer a {
  text-decoration: none;
}

footer a:hover {
  color: #fff !important;
}

/* Footer Brand */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-logo {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-app-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f48120;
  margin-bottom: 0;
}

.footer-tagline {
  color: #adb5bd;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Domain Sharing Styles */
.nav-tabs {
  border-bottom-color: #495057;
}

.nav-tabs .nav-link {
  color: #dee2e6;
  border-color: #495057;
  background-color: #2c3034;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: #495057;
  background-color: #3a3f44;
  color: #f48120;
}

.nav-tabs .nav-link.active {
  color: #f48120;
  background-color: #2c3034;
  border-color: #495057 #495057 #2c3034;
  font-weight: bold;
}

.nav-tabs .badge {
  margin-left: 8px;
  font-size: 0.7rem;
  padding: 3px 6px;
}

/* Shared Domain Indicator */
.shared-domain-row {
  border-left: 3px solid #28a745;
  background-color: rgba(40, 167, 69, 0.05);
}

.shared-domain-row:hover {
  background-color: rgba(40, 167, 69, 0.1);
}

/* Permission Badges */
.badge.bg-secondary {
  background-color: #6c757d !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

/* Share Button Styling */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Access Management Section */
.access-management-card {
  border-left: 3px solid #28a745;
}

.access-management-card .card-header {
  background-color: rgba(40, 167, 69, 0.1);
}

/* Revoke Button Styling */
.revoke-share-btn {
  transition: all 0.3s ease;
}

.revoke-share-btn:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .domain-card .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .domain-actions {
    margin-top: 10px;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .nav-tabs .nav-link {
    font-size: 0.9rem;
  }

  .nav-tabs .badge {
    font-size: 0.65rem;
  }
}
