:root {
  --accent-color: #d62828;
  --accent-dark: #a01e1e;
  --accent-light: rgba(214, 40, 40, 0.15);
  --dark-bg: #0a0f1c;
  --light-bg: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.18);
  --transition-speed: 0.4s;
  --border-radius: 0.5rem;
  --cell-border: 2px solid #e2e8f0;
}

.radostna-top300-container {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(145deg, #ffffff 0%, var(--light-bg) 100%);
  padding: 3rem;
  margin: 2rem auto;
  max-width: 1800px;
  border-radius: var(--border-radius);
  border-left: 1rem solid var(--accent-color);
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}


.radostna-top300-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
}

.header
{
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.radostna-top300-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 2rem;
  font-size: 1rem;
  position: relative;
  box-shadow: var(--card-shadow);
  border: 2px solid #e2e8f0;
}


.radostna-top300-table thead {
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.radostna-top300-table th {
  padding: 1.5rem 2rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.radostna-top300-table th:last-child {
  border-right: none;
}


.radostna-top300-table tbody tr {
  transition: all var(--transition-speed) ease;
  border-bottom: var(--cell-border);
}

.radostna-top300-table td {
  padding: 1.5rem 2rem;
  background: #fff;
  vertical-align: middle;
  position: relative;
  border-right: var(--cell-border);
  font-weight: 500;
}

.radostna-top300-table td:last-child {
  border-right: none;
}

.radostna-top300-table tbody tr:last-child {
  border-bottom: none;
}

.radostna-top300-table tbody tr:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(214, 40, 40, 0.2);
}

.radostna-top300-table tbody tr:hover td {
  background: var(--accent-light);
}


.radostna-top300-table th:nth-child(1),
.radostna-top300-table td:nth-child(1) {
  width: 6%;
  text-align: left;
  font-weight: 600;
}

.radostna-top300-table th:nth-child(2),
.radostna-top300-table td:nth-child(2) {
  width: 28%;
  text-align: left;
  font-weight: 600;
}

.radostna-top300-table th:nth-child(3),
.radostna-top300-table td:nth-child(3) {
  min-width: 200px;
  text-align: left;
  width: 22%;
}

.radostna-top300-table th:nth-child(4),
.radostna-top300-table td:nth-child(4) {
  width: 16%;
  font-weight: 600;
  text-align: left;
}

.radostna-top300-table th:nth-child(5),
.radostna-top300-table td:nth-child(5) {
  width: 16%;
  text-align: left;
  font-weight: 600;
}

.radostna-top300-table th:nth-child(6),
.radostna-top300-table td:nth-child(6) {
  width: 22%;
  text-align: left;
  font-weight: 700;
}
.radostna-top300-table td:nth-child(6)
{
  color:var(--accent-dark);
  text-align: center;
}




.radostna-top300-table td.error {
  text-align: center;
  color: var(--accent-color);
  font-weight: 700;
  padding: 2.5rem;
  background: rgba(214, 40, 40, 0.08);
  font-size: 1.1rem;
}


.tech-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
  margin: 1.5rem 0;
  position: relative;
}

.tech-accent-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 100%);
  opacity: 0.5;
}


@media (max-width: 1400px) {
  .radostna-top300-container {
    padding: 2rem;
    margin: 1.5rem;
  }
  
  .radostna-top300-table th,
  .radostna-top300-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .radostna-top300-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .radostna-top300-table th,
  .radostna-top300-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
}


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

.radostna-top300-table tbody tr {
  animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}


.data-highlight {
  position: relative;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 0.25rem;
  font-weight: 600;
}

.data-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-color);
}

.rank-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-color);
  color: white;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: 1rem;
  vertical-align: middle;
}


.sharp-corner {
  border-radius: 0 !important;
}


.cell-border-right {
  border-right: 2px solid #e2e8f0 !important;
}

.cell-border-bottom {
  border-bottom: 2px solid #e2e8f0 !important;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.loading-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-circle:nth-child(1) {
    animation-delay: -0.32s;
}
.loading-circle:nth-child(2) {
    animation-delay: -0.16s;
}
.loading-circle:nth-child(3) {
    animation-delay: 0;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 
    40% {
        transform: scale(1);
    }
}

.rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.rating-bar-wrapper {
    width: 100%;
    height: 10px;
    background-color: #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0904c, #ee5d43);
    transition: width 0.4s ease;
    border-radius: 5px;
}
