/* Reset ve Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Header - Genel */
header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header #branding h1 {
    margin: 0;
    font-size: 28px;
}

header #branding h1 a {
    color: #fff;
    font-weight: 700;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 17px;
    text-transform: capitalize;
    padding: 5px 0;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease-out;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 30px 0;
}

main h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
    font-weight: 600;
}

/* Presentation Cards (Ana Sayfa) */
.presentations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.presentation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.presentation-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.presentation-card h3 a {
    color: #333;
    font-weight: 600;
}

.presentation-card h3 a:hover {
    color: #007bff;
}

.presentation-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 10px;
}

.presentation-card p strong {
    color: #555;
}

.presentation-card .actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.presentation-card .actions a {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.presentation-card .actions a:hover {
    background-color: #0056b3;
}

.presentation-card .actions a.delete {
    background-color: #dc3545;
}

.presentation-card .actions a.delete:hover {
    background-color: #c82333;
}

/* Admin Login Sayfası Stilleri */
.admin-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #6a11cb, #2575fc);
}

.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.login-container .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #2575fc;
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #2575fc, #6a11cb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-top: 20px;
}

.login-container button:hover {
    opacity: 0.9;
}

.login-container .error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Dashboard ve Diğer Admin Sayfaları */
.dashboard-header {
    background: linear-gradient(to right, #2575fc, #6a11cb);
    color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 26px;
}

.dashboard-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.dashboard-header nav ul li {
    margin-left: 20px;
}

.dashboard-header nav ul li a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
}

.dashboard-header nav ul li a:hover {
    text-decoration: underline;
}

.dashboard-main {
    padding: 30px;
}

.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.form-section .form-group {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-section input[type="text"]:focus,
.form-section textarea:focus {
    border-color: #2575fc;
    outline: none;
}

.form-section textarea {
    min-height: 200px;
    resize: vertical;
}

.form-section button {
    padding: 12px 25px;
    background: linear-gradient(to right, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.form-section button:hover {
    opacity: 0.9;
}

/* Mesajlar */
.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    header #branding h1 {
        font-size: 24px;
    }

    header nav ul li {
        margin-left: 15px;
    }

    header nav ul li a {
        font-size: 15px;
    }

    .presentations-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .presentation-card {
        padding: 20px;
    }

    .presentation-card h3 {
        font-size: 20px;
    }

    .form-section {
        padding: 25px;
    }

    .form-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap; /* Küçük ekranlarda menü elemanlarını alta kaydır */
    }

    header nav ul li {
        margin: 5px 10px;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .dashboard-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .dashboard-header nav ul {
        margin-top: 10px;
        justify-content: center;
    }

    .login-container {
        padding: 30px;
    }

    .login-container h2 {
        font-size: 24px;
    }

    .form-section button {
        width: 100%; /* Mobil cihazlarda butonların tam genişlikte olması */
    }

    .presentation-card .actions {
        flex-direction: column; /* Aksiyon butonlarını alt alta sırala */
        align-items: stretch;
        gap: 10px;
    }

    .presentation-card .actions a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        margin: 0;
    }

    .container {
        width: 100%;
        padding: 15px;
    }

    header {
        padding: 10px 0;
    }

    header #branding h1 {
        font-size: 22px;
    }

    header nav ul li {
        margin: 3px 8px;
    }

    main h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .presentation-card {
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 15px;
    }

    .presentation-card h3 {
        font-size: 18px;
    }

    .login-container {
        padding: 25px;
        margin: 15px;
    }

    .form-section {
        padding: 20px;
        margin-top: 15px;
    }

    .form-section h2 {
        font-size: 22px;
    }

    .form-section input[type="text"],
    .form-section textarea,
    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 10px;
        font-size: 14px;
    }

    .form-section button,
    .login-container button {
        padding: 10px;
        font-size: 16px;
    }
}
