/* Cards */
.card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
}

.card-header {
  padding: 1.5rem 1.5rem 0.75rem 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Service Detail Header */
.service-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.service-icon-large {
  background: #334155;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.service-icon-large i {
  color: #94a3b8;
  font-size: 2rem;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.service-detail-description {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-contact-info p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

.service-contact-info a {
  color: #94a3b8;
  text-decoration: none;
}

.service-contact-info a:hover {
  color: #f8fafc;
}

.service-status-large {
  flex-shrink: 0;
}

/* Service Statistics Grid */
.service-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  background: #334155;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
}

.stat-card .stat-icon i {
  color: #94a3b8;
  font-size: 1.5rem;
}

.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: #94a3b8;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Service Cards - Matching React preview exactly */
.service-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  height: 100%;
}

.service-card:hover {
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  background: #334155;
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.service-icon i {
  color: #94a3b8;
  font-size: 1.25rem;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.service-category {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.2;
}

.service-content {
  margin-top: auto;
  padding-top: 1rem;
}

.service-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.report-count {
  text-align: right;
  flex-shrink: 0;
}

.report-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.report-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Status Badges - Exactly like React preview */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-operational {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.status-degraded {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

.status-outage {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.5rem;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-author {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.875rem;
}

.comment-time {
  color: #94a3b8;
  font-size: 0.75rem;
}

.comment-rating {
  display: flex;
  gap: 0.25rem;
}

.comment-rating i {
  font-size: 0.75rem;
}

.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: #374151;
}

.comment-content {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Dashboard */
.dashboard-section {
  margin-bottom: 3rem;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.stats-box {
  text-align: center;
  background: rgba(30, 41, 59, 0.6);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #334155;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Statistics */
.statistics-section {
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid #334155;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(15, 23, 42, 0.8);
}

.stat-icon {
  background: #334155;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  color: #94a3b8;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #f8fafc;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: #f8fafc;
  color: #0f172a;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Map */
.map-placeholder {
  background: rgba(15, 23, 42, 0.6);
  border: 2px dashed #334155;
  border-radius: 12px;
  padding: 3rem 1rem;
  text-align: center;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: #64748b;
}

.map-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.map-placeholder p {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.map-placeholder small {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #f8fafc;
}

.breadcrumb-separator {
  color: #94a3b8;
}

.breadcrumb-current {
  color: #f8fafc;
  font-weight: 600;
}

/* Service Detail */
.service-detail {
  display: grid;
  gap: 2rem;
}

/* Service History */
.service-history {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.history-item strong {
  color: #f8fafc;
}

/* Chart placeholder */
.chart-placeholder {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: #94a3b8;
}

.chart-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.chart-placeholder p {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-detail-header {
    flex-direction: column;
    text-align: center;
  }
  
  .service-detail-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .service-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .service-detail-header {
    padding: 1.5rem;
  }
  
  .service-detail-title {
    font-size: 1.75rem;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Latest Comments Styles */
.latest-comments-section {
    margin: 2rem 0;
}

.latest-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.latest-comment-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.latest-comment-item:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.latest-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.latest-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.latest-comment-author {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.latest-comment-service {
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-comment-service:hover {
    color: #818cf8;
}

.latest-comment-time {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.latest-comment-time i {
    font-size: 0.7rem;
}

.latest-comment-content {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-comment-rating {
    display: flex;
    gap: 0.125rem;
    margin-top: 0.5rem;
}

.latest-comment-rating .star {
    color: #fbbf24;
    font-size: 0.75rem;
}

.latest-comment-rating .star.empty {
    color: #374151;
}

/* Responsive design for latest comments */
@media (max-width: 768px) {
    .latest-comment-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .latest-comment-time {
        align-self: flex-start;
    }
    
    .latest-comment-item {
        padding: 0.875rem 1rem;
    }
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid #334155;
  margin-top: 4rem;
  backdrop-filter: blur(10px);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.footer-logo i {
  color: #ef4444;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.875rem;
}

.footer-title {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #f8fafc;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #94a3b8;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: #f8fafc;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #f8fafc;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}
