/* === genel css gorunumu === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #83a4d4, #b6fbff);
    margin: 0;
    padding: 0;
    color: #333;
    text-align: center;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 25px;
}

/* === contaıner === */
.container {
    max-width: 900px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* === form stilleri === */
form {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    display: inline-block;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
    max-width: 500px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* === buton stilleri === */
input[type="submit"],
a.button,
button {
    display: inline-block;
    background-color: #007bff;
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    margin: 10px 5px 0 0;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
a.button:hover,
button:hover {
    background-color: #0056b3;
}

/* === tablo stilleri === */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

table th {
    background-color: #007bff;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f1f9ff;
}

/* === detay sayfası ıcın ayrı stil === */
.detay-body {
    font-family: Arial, sans-serif;
    max-width: 700px;
    margin: 30px auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.detay-body h1,
.detay-body h2 {
    text-align: center;
    color: #333;
}

.back-link {
    display: block;
    margin: 20px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #007bff;
}

.back-link:hover {
    text-decoration: underline;
}

/* === urun resım stılı === */
img.urun-resim {
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

/* === kullanıcı panelı butonları === */
.actions {
    text-align: center;
    margin-top: 30px;
}

.actions a {
    display: inline-block;
    text-decoration: none;
    background-color: #27ae60;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    margin: 8px;
    transition: 0.3s;
}

.actions a:hover {
    background-color: #219150;
}

/* === logout butonu (kargoekle.php) === */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    background-color: #f0f0f0;
}

.logout-btn {
    background-color: #d9534f;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logout-btn:hover {
    background-color: #c9302c;
}

/* === mobil uyumu ıcın stil === */
@media (max-width: 600px) {
    .container, form {
        width: 90%;
        margin: 40px auto;
        padding: 20px;
    }

    table {
        font-size: 12px;
    }

    input[type="text"],
    input[type="password"],
    textarea,
    select {
        font-size: 13px;
    }
}
