/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f3f4f6, #e9ecef);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

h1, h2, p {
    margin-bottom: 20px;
    text-align: center;
}

a {
    text-decoration: none;
}

/* Ana Sayfa (index.php) */
.index-container {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.index-container h1 {
    font-size: 24px;
    color: #2d6a4f;
}

.index-container p {
    color: #555;
    margin-bottom: 30px;
}

.index-container .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.index-container .btn {
    padding: 10px 20px;
    background: #2d6a4f;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.index-container .btn:hover {
    background: #1b4332;
}

.index-container .btn-secondary {
    background: #495057;
}

.index-container .btn-secondary:hover {
    background: #343a40;
}

/* Form Sayfaları (login.php ve register.php) */
.form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.form-container h2 {
    font-size: 22px;
    color: #2d6a4f;
    margin-bottom: 20px;
}

.form-container .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.form-container .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-container .form-group input:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 5px rgba(45, 106, 79, 0.2);
}

.error {
    color: #d9534f;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.switch-form {
    font-size: 14px;
    margin-top: 15px;
}

.switch-form a {
    color: #2d6a4f;
    font-weight: bold;
    transition: color 0.3s ease;
}

.switch-form a:hover {
    color: #1b4332;
}

/* Butonlar */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #2d6a4f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1b4332;
}
/* Dashboard Genel Ayarları */
.dashboard-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Başlık ve Açıklama */
.dashboard-header h1 {
    font-size: 28px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.dashboard-header p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Dashboard Bağlantıları */
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #2d6a4f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #e9ecef;
}

/* Kart İçeriği */
.card-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #2d6a4f;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
}

/* Çıkış Yap Kartı */
.logout-card {
    background: #f8d7da;
    color: #721c24;
}

.logout-card:hover {
    background: #f1b0b7;
}
/* Sayfa Kapsayıcı */
.form-page-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-page-container h1 {
    font-size: 28px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.form-page-container p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.success-message {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Form Stilleri */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2d6a4f;
    box-shadow: 0 0 5px rgba(45, 106, 79, 0.2);
    outline: none;
}

/* Buton Stili */
.btn {
    padding: 12px 20px;
    background: #2d6a4f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1b4332;
}
/* Plan Oluşturma Sayfası */
.form-page-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-page-container h1 {
    font-size: 28px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.form-page-container p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.success-message {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Form Stilleri */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.modern-form p {
    font-size: 16px;
    color: #495057;
    text-align: center;
}

/* Buton Stili */
.btn {
    padding: 12px 20px;
    background: #2d6a4f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1b4332;
}
/* Haftalık Plan Sayfası */
.plan-page-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.plan-page-container h1 {
    font-size: 28px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.plan-page-container p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Plan Tablosu */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    color: #495057;
}

.plan-table thead {
    background: #2d6a4f;
    color: #ffffff;
}

.plan-table th, .plan-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.plan-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.plan-table tbody tr:hover {
    background: #e9ecef;
    transition: background 0.3s ease;
}

/* Geri Dön Butonu */
.btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #2d6a4f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1b4332;
}
/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Tablo Yemek Bağlantıları */
.meal {
    color: #2d6a4f;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.meal:hover {
    color: #1b4332;
}
/* Genel Ayarlar */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #495057;
}

/* Haftalık Plan Sayfası */
.plan-page-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.plan-page-container h1 {
    font-size: 28px;
    color: #2d6a4f;
    margin-bottom: 10px;
}

.plan-page-container p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Plan Tablosu */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    color: #495057;
}

.plan-table thead {
    background: #2d6a4f;
    color: #ffffff;
}

.plan-table th, 
.plan-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.plan-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.plan-table tbody tr:hover {
    background: #e9ecef;
    transition: background 0.3s ease;
}

/* Tablo Responsive Tasarım */
@media (max-width: 768px) {
    .plan-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .plan-table thead {
        display: none;
    }

    .plan-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }

    .plan-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    .plan-table td:last-child {
        border-bottom: 0;
    }

    .plan-table td::before {
        content: attr(data-label);
        flex-basis: 50%;
        font-weight: bold;
        text-align: left;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Tablo Yemek Bağlantıları */
.meal {
    color: #2d6a4f;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.meal:hover {
    color: #1b4332;
}

/* Geri Dön Butonu */
.btn {
    margin-top: 20px;
    padding: 12px 20px;
    background: #2d6a4f;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1b4332;
}
