/* Genel Stil ve Resetleme */
:root {
    --primary-color: #0a2540;
    --secondary-color: #4f46e5;
    --background-color: #f8fafc;
    --text-color: #334155;
    --light-gray: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .btn-register {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-links .btn-register:hover {
    background-color: #4338ca;
    color: var(--white);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu.active {
    display: flex;
}

/* Genel Buton ve Bölüm Stilleri */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

main>section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Diğer Bölümler */
.services h2,
.about h2,
.contact h2,
.admin-panel h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

.about-text {
    flex: 1;
}

/* İletişim Formu ve Mesajları */
.contact p {
    text-align: center;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* İKİLİ GİRİŞ ALANI İÇİN YENİ STİL */
.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-row>div {
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-message {
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    max-width: 700px;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-message.info {
    background-color: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Gelişmiş Admin Paneli Stilleri */
.admin-panel h2 {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
}

.admin-panel h3 {
    margin-top: 40px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    background-color: #eef2ff;
    padding: 18px;
    border-radius: 50%;
}

.stat-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-align: left;
}

.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-container #userSearch {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.search-container .fa-search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
}

.admin-panel table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.admin-panel th,
.admin-panel td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-panel thead th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-panel tbody tr:last-child td {
    border-bottom: none;
}

.admin-panel tbody tr:hover {
    background-color: #f9fafb;
}

.status-badge,
.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background-color: #ffedd5;
    color: #9a3412;
}

.status-badge.banned {
    background-color: #fee2e2;
    color: #991b1b;
}

.role-badge.admin {
    background-color: #e0e7ff;
    color: #3730a3;
}

.role-badge.user {
    background-color: #e2e8f0;
    color: #334155;
}

.action-btn {
    padding: 8px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn:hover {
    opacity: 0.85;
}

.action-btn.edit-btn {
    background-color: #3b82f6;
}

.action-btn.reject-btn {
    background-color: #ef4444;
}

.admin-panel .action-btn i {
    font-size: 0.9rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.contact-form select,
.contact-form input[type="date"],
.contact-form input[type="datetime-local"] {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: var(--white);
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex-grow: 1;
}

.btn-secondary {
    padding: 15px 20px;
    background-color: #64748b;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.btn-secondary:hover {
    background-color: #475569;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.social-media a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

footer p {
    margin-top: 15px;
    opacity: 0.8;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .service-cards,
    .about-content,
    .form-row {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
/* Gelişmiş Admin Paneli Stilleri */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px_6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    background-color: #eef2ff;
    padding: 18px;
    border-radius: 50%;
}

.stat-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-align: left;
}

/* Arama Çubuğu */
.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-container #userSearch {
    width: 100%;
    padding: 15px 20px 15px 45px;
    /* Sol tarafa ikon için boşluk */
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.search-container .fa-search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Modern Tablo Stilleri */
.admin-panel table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.admin-panel th,
.admin-panel td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-panel thead th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-panel tbody tr:last-child td {
    border-bottom: none;
}

.admin-panel tbody tr:hover {
    background-color: #f9fafb;
}


/* Durum ve Rol Etiketleri (Modern Tasarım) */
.status-badge,
.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-badge.approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background-color: #ffedd5;
    color: #9a3412;
}

/* YENİ EKLENEN CEZA STİLİ */
.status-badge.banned {
    background-color: #fee2e2;
    color: #991b1b;
}


.role-badge.admin {
    background-color: #e0e7ff;
    color: #3730a3;
}

.role-badge.user {
    background-color: #e2e8f0;
    color: #334155;
}

/* İşlem Butonları */
.action-btn.edit-btn {
    background-color: #3b82f6;
}

.action-btn.edit-btn:hover {
    background-color: #2563eb;
}

.admin-panel .action-btn i {
    font-size: 0.9rem;
}


/* Düzenleme Formu Stilleri */
.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form select,
.contact-form input[type="date"] {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: var(--white);
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form select,
.contact-form input[type="date"],
.contact-form input[type="datetime-local"] {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    background-color: var(--white);
}

/* YENİ EKLENEN STİLLER */
.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex-grow: 1;
}

.btn-secondary {
    padding: 15px 20px;
    background-color: #64748b;
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    /* Butonun küçülmesini engelle */
}

.btn-secondary:hover {
    background-color: #475569;
}
