/* Genel Ayarlar */
body {
    font-family: 'Inter', sans-serif; /* Inter fontunu kullan */
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Açık gri arka plan */
    display: flex;
    flex-direction: column; /* Dikey hizalama için */
    justify-content: flex-start; /* Üstten başla */
    align-items: center;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    background: linear-gradient(to bottom right, #e0f2f7, #c8e6c9); /* Hafif degrade arka plan */
}

.hero-section {
    width: 100%;
    background: linear-gradient(to right, #4CAF50, #8bc34a); /* Yeşil degrade */
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-content h1 i {
    font-size: 0.9em; /* İkon boyutu */
}

.hero-content p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Daha belirgin gölge */
    width: 100%;
    max-width: 550px; /* Maksimum genişliği artır */
    box-sizing: border-box;
    margin: 20px;
    text-align: center;
    animation: fadeIn 0.8s ease-out; /* Hafif giriş animasyonu */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 1em;
}

/* Form Stil Ayarları */
.appointment-form .form-group,
.login-form .form-group /* Login formu için de uygula */ {
    margin-bottom: 20px;
    text-align: left;
}

.appointment-form label,
.login-form label /* Login formu için de uygula */ {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
    display: flex; /* İkon ve metni hizalamak için */
    align-items: center;
    gap: 8px; /* İkon ile metin arası boşluk */
}

.appointment-form label i {
    color: #4CAF50; /* İkon rengi */
}


.appointment-form input[type="text"],
.appointment-form input[type="tel"],
.appointment-form input[type="date"],
.appointment-form input[type="time"],
.appointment-form select,
.login-form input[type="text"], /* Login formu için de uygula */
.login-form input[type="password"] /* Login formu için de uygula */ {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box; /* Padding'i genişliğe dahil et */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.appointment-form input[type="text"]:focus,
.appointment-form input[type="tel"]:focus,
.appointment-form input[type="date"]:focus,
.appointment-form input[type="time"]:focus,
.appointment-form select:focus,
.login-form input[type="text"]:focus, /* Login formu için de uygula */
.login-form input[type="password"]:focus /* Login formu için de uygula */ {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25); /* Daha belirgin odak gölgesi */
    outline: none;
}

.submit-btn {
    background-color: #4CAF50; /* Yeşil buton */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3); /* Buton gölgesi */
    display: flex; /* İkon ve metni hizalamak için */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #45a049; /* Daha koyu yeşil */
    transform: translateY(-2px); /* Hafif yukarı hareket */
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4); /* Hover'da daha belirgin gölge */
}

/* Mesaj Kutusu Stilleri (randevu_al.php ve login.php için) */
.message-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Mesaj kutusu gölgesi */
}

.message-box.success {
    background-color: #e6ffe6; /* Açık yeşil arka plan */
    border: 1px solid #4CAF50;
    color: #2e7d32;
}

.message-box.error {
    background-color: #ffe6e6; /* Açık kırmızı arka plan */
    border: 1px solid #f44336;
    color: #c62828;
}

.message-box h2 {
    margin-top: 0;
    color: inherit; /* Üst elementin rengini alır */
}

.message-box p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.back-button {
    display: inline-block;
    background-color: #2196F3; /* Mavi buton */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.back-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

/* Footer Stil Ayarları */
footer {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.9em;
    text-align: center; /* Footer metnini ortala */
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* Yükleniyor Spinner Stili */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #4CAF50;
    font-size: 1.1em;
    font-weight: 500;
}

.loading-spinner i {
    font-size: 2em;
    margin-bottom: 10px;
    animation: spin 1s linear infinite; /* Spinner animasyonu */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Mobil cihazlar için responsive ayarlar */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2em;
        flex-direction: column; /* Mobil ikon ve başlık alt alta */
        gap: 5px;
    }
    .hero-content p {
        font-size: 1em;
    }

    .container {
        padding: 25px;
        margin: 10px;
    }

    .form-header h2 {
        font-size: 1.8em;
    }

    .submit-btn, .back-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Admin Paneli İçin Yeni Stiller */
.admin-container {
    width: 100%;
    max-width: 1200px; /* Admin paneli daha geniş olabilir */
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Daha belirgin gölge */
    margin: 20px auto; /* Ortalamak için */
    text-align: left; /* Metin sola hizalı */
    animation: fadeIn 0.8s ease-out; /* Hafif giriş animasyonu */
}

.admin-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative; /* Çıkış butonu için */
}

.admin-header h1 {
    color: #007bff; /* Mavi başlık */
    font-size: 2.8em; /* Daha büyük başlık */
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.admin-header p {
    font-size: 1.1em;
    color: #666;
}

.logout-button {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545; /* Kırmızı çıkış butonu */
    color: white;
    padding: 10px 18px; /* Daha büyük padding */
    border: none;
    border-radius: 8px; /* Daha yuvarlak köşeler */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.logout-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
}

.admin-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0; /* Daha belirgin çizgi */
    flex-wrap: wrap; /* Sekmeler sığmazsa alt satıra geçsin */
    gap: 10px; /* Sekmeler arası boşluk */
}

.admin-tabs button {
    background-color: #f8f9fa; /* Hafif gri arka plan */
    border: 1px solid #e0e0e0; /* Kenarlık */
    padding: 12px 20px; /* Daha büyük padding */
    cursor: pointer;
    font-size: 1em; /* Daha küçük font boyutu */
    font-weight: 600;
    color: #555;
    border-radius: 8px; /* Yuvarlak köşeler */
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-tabs button:hover {
    color: #0056b3; /* Daha koyu mavi */
    background-color: #e9f0f7; /* Hafif mavi arka plan */
    border-color: #a7d9ff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1);
}

.admin-tabs button.active {
    color: white;
    background-color: #007bff; /* Mavi aktif sekme */
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.admin-content-section {
    padding: 25px; /* Daha fazla iç boşluk */
    background-color: #fcfcfc; /* Hafif beyaz arka plan */
    border-radius: 10px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.03); /* Hafif iç gölge */
}

.admin-content-section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px; /* Daha yuvarlak köşeler */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Daha belirgin gölge */
}

table th, table td {
    padding: 15px 20px; /* Daha fazla padding */
    text-align: left;
    border-bottom: 1px solid #e0e0e0; /* Daha belirgin ayırıcı */
}

table th {
    background-color: #f0f4f7; /* Başlık arka planı */
    color: #34495e; /* Daha koyu renk */
    font-weight: 700; /* Daha kalın font */
    text-transform: uppercase;
    font-size: 0.95em;
}

table tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: #eef2f5; /* Satır üzerine gelince daha belirgin renk */
}

/* Durum Rozetleri */
.status-badge {
    display: inline-block;
    padding: 6px 12px; /* Daha büyük padding */
    border-radius: 20px; /* Daha oval rozetler */
    font-size: 0.8em;
    font-weight: 700; /* Daha kalın font */
    text-transform: uppercase; /* Büyük harf */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-badge.beklemede {
    background-color: #ffc107; /* Sarı */
    color: #333;
}

.status-badge.onaylandı {
    background-color: #28a745; /* Yeşil */
}

.status-badge.iptal-edildi {
    background-color: #dc3545; /* Kırmızı */
}

/* Aksiyon Butonları */
.action-buttons button,
.action-buttons a.button { /* a.button için de uygula */
    background-color: #007bff;
    color: white;
    padding: 10px 15px; /* Daha büyük padding */
    border: none;
    border-radius: 6px; /* Daha yuvarlak köşeler */
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 8px; /* Daha fazla boşluk */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* Linkler için */
    display: inline-flex; /* İkon ve metni hizalamak için */
    align-items: center;
    gap: 5px;
}

.action-buttons button.approve {
    background-color: #28a745;
}

.action-buttons button.cancel {
    background-color: #dc3545;
}

.action-buttons button.edit,
.action-buttons a.button.edit {
    background-color: #ffc107; /* Sarı */
    color: #333;
}

.action-buttons button.delete,
.action-buttons a.button.delete {
    background-color: #dc3545; /* Kırmızı */
}


.action-buttons button:hover,
.action-buttons a.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Yeni Kayıt Formu */
.admin-form {
    background-color: #f8f9fa;
    padding: 30px; /* Daha fazla padding */
    border-radius: 10px; /* Daha yuvarlak köşeler */
    margin-top: 25px;
    box-shadow: inset 0 1px 5px rgba(0,0,0,0.05);
}

.admin-form .form-group {
    margin-bottom: 20px; /* Daha fazla boşluk */
}

.admin-form label {
    font-weight: 600; /* Daha kalın font */
    color: #495057;
    font-size: 1em; /* Daha büyük font */
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="date"],
.admin-form input[type="time"],
.admin-form select,
.admin-form textarea {
    width: calc(100% - 24px); /* Padding'i hesaba kat */
    padding: 12px 15px; /* Daha büyük padding */
    border: 1px solid #ced4da;
    border-radius: 8px; /* Daha yuvarlak köşeler */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="number"]:focus,
.admin-form input[type="date"]:focus,
.admin-form input[type="time"]:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
    outline: none;
}

.admin-form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 25px; /* Daha büyük padding */
    border: none;
    border-radius: 8px; /* Daha yuvarlak köşeler */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.admin-form button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Yönetim mesajları */
.admin-message {
    padding: 20px; /* Daha fazla padding */
    border-radius: 10px; /* Daha yuvarlak köşeler */
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Mobil cihazlar için admin paneli responsive ayarlar */
@media (max-width: 768px) {
    .admin-container {
        padding: 20px;
        margin: 10px;
    }

    .admin-header h1 {
        font-size: 2em;
    }

    /* Çıkış butonu mobil için ayarlandı */
    .logout-button {
        position: static;
        margin-top: 15px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .admin-tabs {
        flex-direction: column; /* Mobil görünümde sekmeler alt alta */
        align-items: stretch;
    }

    .admin-tabs button {
        border-bottom: none;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .admin-tabs button.active {
        border-bottom: none;
        background-color: #eaf6ff;
    }

    table, tbody, th, td, tr {
        display: block; /* Tablo hücrelerini blok eleman yap */
    }

    table thead {
        display: none; /* Başlıkları gizle */
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 10px;
    }

    table td {
        text-align: right;
        padding-left: 50%; /* Etiket için boşluk */
        position: relative;
    }

    table td::before {
        content: attr(data-label); /* data-label niteliğini etiket olarak kullan */
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: #555;
    }

    .action-buttons {
        text-align: right;
        margin-top: 10px;
        display: flex; /* Butonları yan yana hizalamak için */
        justify-content: flex-end; /* Sağ hizala */
        gap: 5px; /* Butonlar arasına boşluk */
    }
    .action-buttons button {
        margin-right: 0; /* Eski margin'i sıfırla */
    }
}
