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-color: #f0f2f6;
}


h1, h2, h3, h4, h5, h6, p, a, li {
    font-family: "Poppins", sans-serif !important;
}
.color-codebutor {
    color: #70a799;
}
.font-roboto-slab {
  font-family: "Roboto Slab", serif !important;
}
.font-bevietnampro{
  font-family: "Be Vietnam Pro", sans-serif !important;
}

/* Statistics Cards Alignment Fix */
.stats-card {
    min-height: 120px;
    display: flex;
    align-items: center;
}

.stats-card .card-header {
    width: 100%;
    padding: 1rem;
}

.stats-card .card-title {
    justify-content: center;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Trending Page Improvements */
.trending-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.trending-filters .row {
    align-items: end;
}

.trending-filters label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.trending-search-input {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.trending-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Awesome Page Enhancements */
.hover-elevate-up {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hover-elevate-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
}

.repository-item .card {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #E4E6EF;
}

.repository-item .symbol img {
    border-radius: 50%;
    object-fit: cover;
}

.awesome-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
}

.awesome-stats-card .card-body {
    background: transparent;
    border: none;
}

.language-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.search-input-enhanced {
    border-radius: 2rem;
    border: 2px solid #e4e6ef;
    transition: border-color 0.15s ease;
}

.search-input-enhanced:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.filter-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
}

/* Awesome Page Statistics Cards */
.awesome-stats .card {
    border-radius: 1rem;
    border: 1px solid #E4E6EF;
    transition: all 0.15s ease;
}

.awesome-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.1);
}

.awesome-stats .card-body {
    padding: 2rem;
}

.awesome-stats .fs-3x {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.awesome-stats .text-gray-500 {
    color: #64748b !important;
    font-weight: 500;
}

/* Awesome Toolbar Improvements */
.awesome-toolbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #E4E6EF;
    margin-bottom: 2rem;
}

.awesome-toolbar .d-flex {
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.awesome-toolbar > div {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.awesome-toolbar label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.awesome-toolbar .btn-group {
    align-self: flex-end;
}

.awesome-toolbar .position-relative {
    align-self: flex-end;
}

/* View Toggle Buttons */
.awesome-toolbar .btn-group .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.awesome-toolbar .btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.awesome-toolbar .btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Repository Item Cards */
.repository-item {
    margin-bottom: 1.5rem;
}

.repository-item .card {
    transition: all 0.2s ease;
    border: 1px solid #E4E6EF;
}

.repository-item .card:hover {
    border-color: #3B82F6;
    box-shadow: 0 0.5rem 1.5rem rgba(59, 130, 246, 0.1);
}

.repository-item .card-body {
    padding: 2rem;
}

.repository-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.repository-item .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.repository-item .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Loading State Improvements */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: #6b7280;
}

.loading-state .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    border-width: 0.25rem;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Collections View Styling */
.collections-container .card {
    border-radius: 1rem;
    border: 1px solid #E4E6EF;
    transition: all 0.2s ease;
}

.collections-container .card:hover {
    transform: translateY(-2px);
    border-color: #3B82F6;
    box-shadow: 0 0.5rem 1.5rem rgba(59, 130, 246, 0.1);
}

.collections-container .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #E4E6EF;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

.collections-container .card-body {
    padding: 1.5rem;
}

/* Pagination Improvements */
.pagination {
    gap: 0.25rem;
}

.pagination .page-item .page-link {
    border-radius: 0.5rem;
    border: 1px solid #E4E6EF;
    color: #374151;
    padding: 0.5rem 0.75rem;
    transition: all 0.15s ease;
}

.pagination .page-item.active .page-link {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

.pagination .page-item:hover .page-link {
    background: #f8fafc;
    border-color: #3B82F6;
    color: #3B82F6;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .stats-card {
        min-height: 100px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .trending-filters {
        padding: 1rem;
    }
    
    .trending-filters .row {
        gap: 1rem;
    }
    
    .awesome-toolbar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .awesome-toolbar .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .awesome-toolbar > div {
        min-width: auto;
        width: 100%;
    }
    
    .awesome-toolbar .btn-group {
        align-self: stretch;
        width: 100%;
    }
    
    .awesome-toolbar .btn-group .btn {
        flex: 1;
    }
    
    .awesome-toolbar .position-relative {
        align-self: stretch;
    }
    
    .repository-item .card-body {
        padding: 1.5rem;
    }
    
    .repository-item .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .repository-item .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .awesome-stats .card-body {
        padding: 1.5rem;
    }
    
    .awesome-stats .fs-3x {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stats-number {
        font-size: 1.75rem;
    }
    
    .trending-filters .col-md-4,
    .trending-filters .col-md-3,
    .trending-filters .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .awesome-page-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .awesome-page-header h3 {
        font-size: 2rem;
    }
    
    .awesome-toolbar {
        padding: 1rem;
    }
    
    .awesome-toolbar input[type="text"] {
        min-width: 100% !important;
    }
    
    .repository-item h3 {
        font-size: 1.125rem;
    }
    
    .repository-item .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .repository-item .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .awesome-stats .card-body {
        padding: 1rem;
        text-align: center;
    }
    
    .awesome-stats .fs-3x {
        font-size: 1.75rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .trending-filters .col-md-2 {
        display: flex;
        align-items: end;
    }
}

/* Better form control alignment */
.form-label {
    font-weight: 600;
    color: #3F4254;
    font-size: 0.85rem;
}

/* Consistent button sizing */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Fix search input type in trending filters */
.trending-filters input[type="text"] {
    border: 1px solid #E1E3EA;
    border-radius: 0.475rem;
}

/* Awesome Page Header Improvements */
.awesome-page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.awesome-page-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.awesome-page-header .fs-5 {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
}

/* Badge Improvements */
.badge-light-primary {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-light-info {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0EA5E9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-light-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Button Improvements */
.btn-light-primary {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    transition: all 0.15s ease;
}

.btn-light-primary:hover {
    background-color: #3B82F6;
    border-color: #3B82F6;
    color: white;
    transform: translateY(-1px);
}

.btn-light-info {
    background-color: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: #0EA5E9;
}

.btn-light-info:hover {
    background-color: #0EA5E9;
    border-color: #0EA5E9;
    color: white;
    transform: translateY(-1px);
}

.btn-light-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.btn-light-success:hover {
    background-color: #22C55E;
    border-color: #22C55E;
    color: white;
    transform: translateY(-1px);
}

/* Icon Button Improvements */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

/* Copy function and tooltip improvements */
.repository-item .btn-icon:hover {
    transform: scale(1.05);
}

/* Search input focus improvements */
.awesome-toolbar input[type="text"]:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Animation and Transition Improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repository-item {
    animation: fadeInUp 0.3s ease forwards;
}

.repository-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.repository-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card, .btn, .form-control, .form-select, .badge {
    transition: all 0.15s ease;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Loading animation improvements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-state {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Skeleton loading for cards */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}