:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #dcdde1;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f1c40f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

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

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

h1, h2 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Form Elemeleri */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
}

button, .btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background-color: #357abd;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f2f6;
}

.price-col {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

/* Alert Mesajları */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* Arama ve Filtreleme Formu */
.search-container {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.search-container input {
    flex: 1;
    min-width: 150px;
}

.search-container button {
    width: auto;
    flex: 0 0 auto;
}

.total-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 4px;
    text-align: right;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active, .pagination span.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination a:hover:not(.active) {
    background-color: #f1f2f6;
}

.header-links a {
    text-decoration: none;
    color: var(--text-color);
}

.header-links a:hover {
    color: var(--primary-color);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
