* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    background-color: #e0e0e0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.card {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.language-toggle {
    display: flex;
    gap: 10px;
}

.language-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.language-toggle img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.theme-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.theme-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.theme-icon.sun::before {
    content: '\2600'; /* Unicode güneş ikonu */
    font-size: 24px;
}

.theme-icon.moon::before {
    content: '\263D'; /* Unicode ay ikonu */
    font-size: 24px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    text-align: center;
    margin: 0 20px; /* Kartın iç padding'i ile uyumlu */
    width: calc(100% - 40px); /* Kart genişliğine uyum */
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
}

.stat {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
}

.stat.working {
    background: #28a745;
    color: white;
}

.stat.checking {
    background: #fd7e14;
    color: white;
}

.stat.not-working {
    background: #dc3545;
    color: white;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-bar {
    flex: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.filter select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.server-table th {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
}

.server-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    font-size: 0.9rem;
}

.server-table tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.server-table .elite-bypass {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

.server-table .website-link {
    display: inline-block;
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.server-table .status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
}

.server-table .status.working {
    background: #28a745;
}

.server-table .status.not-working {
    background: #dc3545;
}

.server-table .status.checking {
    background: #fd7e14;
}

.pagination {
    text-align: center;
    margin-bottom: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

footer {
    text-align: center;
    padding: 15px;
    background: #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
}

.engxneerz {
    background: linear-gradient(45deg, #007bff, #00b7eb);
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}

/* Admin Paneli */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-header .logout {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-form label {
    font-weight: bold;
    font-size: 1.1rem;
}

.admin-form input, .admin-form select, .admin-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.admin-form button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.admin-form button:hover {
    background: #0056b3;
}

.action.edit {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
}

.action.delete {
    color: #dc3545;
    text-decoration: none;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

/* Yeni: Responsive Tasarım (Mobil ve Tablet için Media Queries) */
/* Tablet ve Mobil (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px; /* Mobil için padding azalt */
    }

    .card {
        padding: 15px; /* Kart padding'i küçült */
    }

    .header h1 {
        font-size: 2rem; /* Başlık küçült */
    }

    .header p {
        font-size: 1rem;
        text-align: center; /* Mobil için merkezle */
        margin: 0 auto;
        width: 100%; /* Genişlik tam */
    }

    .stats {
        flex-direction: column; /* İstatistikleri dikey sırala */
        gap: 10px;
        align-items: center;
    }

    .filters {
        flex-direction: column; /* Filtreleri dikey sırala */
        gap: 15px;
    }

    .filter select {
        min-width: 100%; /* Select tam genişlik */
    }

    #server-list {
        overflow-x: auto; /* Tablo yatay scrollable olsun (taşma önleme) */
    }

    .server-table th, .server-table td {
        padding: 8px 6px; /* Padding küçült */
        font-size: 0.85rem; /* Font küçült */
    }

    .server-table .website-link {
        font-size: 0.85rem;
        padding: 3px 6px;
    }

    .server-table .status {
        font-size: 0.85rem;
        padding: 3px 6px;
    }

    .pagination a {
        padding: 6px 10px; /* Pagination butonları küçült */
        margin: 0 3px;
    }

    footer {
        font-size: 1rem; /* Footer font küçült */
        padding: 10px;
    }

    /* Admin paneli için responsive */
    .admin-header h1 {
        font-size: 1.8rem;
    }

    .admin-form input, .admin-form select, .admin-form textarea {
        font-size: 0.95rem;
    }
}

/* Küçük Mobil (max-width: 480px) - Ekstra ayarlar */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .stat {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .search-bar input {
        font-size: 0.95rem;
    }

    .server-table th, .server-table td {
        font-size: 0.8rem;
    }

    .pagination a {
        padding: 5px 8px;
    }
}