@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow-x: hidden;
}

/* Animirana pozadina (3D efekat) */
body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(72, 0, 255, 0.15), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 255, 200, 0.08), transparent 50%);
    animation: rotateBackground 25s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(72, 0, 255, 0.1);
    padding: 35px 30px;
    transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.content-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(72, 0, 255, 0.15);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.15);
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 15px;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-form input {
    width: 320px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Poppins', 'Arial', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

.search-form input:focus {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.1);
}

.search-form button {
    padding: 14px 30px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', 'Arial', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.5px;
}

.search-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.ban-list-container {
    margin-top: 10px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}

table thead {
    background: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
}

table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badge za tip bana */
.ban-type {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ban-type.permanent {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.ban-type.temporary {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.page-link:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.15);
}

.page-link.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
    }
    
    table th,
    table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 15px 10px;
        border-radius: 18px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    table th,
    table td {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .ban-type {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}