html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* === Custom Odrudy Styles === */

.odrudy-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.odrudy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.odrudy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.odrudy-header p {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.odrudy-table {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.odrudy-table table {
    margin-bottom: 0;
}

.odrudy-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.odrudy-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    color: #495057;
    border-bottom: 2px solid #667eea;
}

.odrudy-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f5;
}

.odrudy-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.odrudy-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.odrudy-date-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.odrudy-date-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.odrudy-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    background: #f0f3ff;
    padding: 0.5rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.odrudy-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
}

/* === Custom Navbar Styles === */

.custom-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    transition: transform 0.3s ease;
}

.custom-navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

.custom-navbar .nav-link i {
    margin-right: 0.5rem;
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.custom-navbar .form-control {
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.custom-navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.custom-navbar .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.custom-navbar .btn-outline-light:hover {
    background: white;
    color: #667eea;
}

/* === Custom Footer === */

.custom-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: rgba(255, 255, 255, 0.8);
    border-top: 3px solid #667eea;
}

.custom-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.custom-footer a:hover {
    color: white;
}

/* === Pagination Styles === */

.pagination-custom .page-link {
    color: #667eea;
    border: 2px solid #e9ecef;
    margin: 0 0.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-custom .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Filter/Search Styles === */

.input-group-text.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 10px;
}

/* === Responsive Design === */

@media (max-width: 768px) {
    .odrudy-header h1 {
        font-size: 1.8rem;
    }
    
    .odrudy-container {
        margin: 1rem auto;
    }
    
    .odrudy-table tbody tr:hover {
        transform: none;
    }
}

@media (max-width: 992px) {
    .custom-navbar .navbar-collapse {
        background: rgba(0, 0, 0, 0.1);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .custom-navbar .nav-link {
        margin: 0.25rem 0;
    }
    
    .custom-navbar .d-flex {
        margin-top: 1rem;
    }
}

/* === Sticky Navbar Effect === */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* === Animation === */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.odrudy-container {
    animation: fadeIn 0.6s ease-out;
}

/* === Sorting Styles === */

.sortable {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    user-select: none;
}

.sort-link {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sort-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.sort-link i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.sortable:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}