/* Global styles */
body {
    background-color: #f5f5f5;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.container {
    max-width: 1140px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

.navbar-light .navbar-nav .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: color 0.2s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-light .navbar-nav .active > .nav-link {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Card styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Button styles */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Form styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin: 1.5rem 0;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link {
    color: #007bff;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Platform Statistics Section */
.stats-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 1.5rem;
}

.stat-content h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #2c3e50;
}

.stat-content p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.stat-content small {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.stat-content small i {
    font-size: 0.75rem;
}

.popular-links-card, .recent-activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.popular-links-card h5, .recent-activity-card h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.popular-link-item, .recent-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.popular-link-item:last-child, .recent-activity-item:last-child {
    border-bottom: none;
}

.link-title {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    flex: 1;
    margin-right: 1rem;
}

.link-title:hover {
    color: #007bff;
    text-decoration: none;
}

.click-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.activity-time {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Loading states */
.stat-loading {
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments for stats */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-content h4 {
        font-size: 1.8rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .popular-links-card, .recent-activity-card {
        padding: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        margin-right: 0;
    }
    
    .container {
        padding: 0 15px;
    }
}