/* Global Reset */
* { box-sizing: border-box; }

.page-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 25px;
    align-items: start;
}

@media (max-width: 1000px) {
    .page-grid { grid-template-columns: 1fr; }
}

/* Kart Yapısı */
.panel-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body { padding: 20px; }

/* Formlar */
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-group.col { flex: 1; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.required { color: #ef4444; }

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
input:focus {
    border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.helper-text { font-size: 0.8rem; color: #64748b; margin-top: 5px; display: block; }
.mb-15 { margin-bottom: 15px; }

/* Input İkonları */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon input {
    padding-right: 65px; /* Sembol için alan */
}
.currency {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    pointer-events: none;
}

.divider { border: 0; border-top: 1px solid #e2e8f0; margin: 25px 0; }

/* Barem Bölümü */
.barem-section {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 15px;
    border-radius: 8px;
}
.barem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.barem-header h4 { margin: 0; font-size: 1rem; color: #334155; }
.btn-add-barem {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}
.btn-add-barem:hover { background: #c7d2fe; }

.barem-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.b-group { flex: 1; }
.b-group label { font-size: 0.8rem; color: #64748b; margin-bottom: 4px; }
.btn-remove-barem {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .2s;
}
.btn-remove-barem:hover { background: #fca5a5; color: #b91c1c; }
.text-muted { color: #94a3b8; }

/* Toggle Switch */
.settings-toggles { padding: 5px 0; }
.toggle-switch { position: relative; display: flex; align-items: center; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: relative; width: 44px; height: 24px; background-color: #cbd5e1; border-radius: 34px; transition: .4s; margin-right: 12px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }
.label-text { font-size: 0.95rem; color: #334155; font-weight: 600; }

/* Butonlar */
.save-btn { background-color: #2563eb; color: white; border: none; padding: 14px; border-radius: 6px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.3s; margin-top: 20px;}
.save-btn:hover { background-color: #1d4ed8; }
.btn-full { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-xs { font-size: 0.8rem; padding: 5px 12px; border-radius: 4px; text-decoration: none; display: inline-block; }
.btn-outline { border: 1px solid #cbd5e1; color: #475569; background: white; }
.btn-outline:hover { background: #f8fafc; }

/* Kargo Listesi Kartları */
.cargo-list { padding: 15px; }
.cargo-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: .2s;
}
.cargo-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.cargo-item.passive { opacity: 0.6; background: #f8fafc; filter: grayscale(1); }

.cargo-item-header {
    background: #f8fafc;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.c-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: #0f172a; }

.cargo-item-body { padding: 15px; }
.free-limit { font-size: 0.95rem; color: #047857; background: #d1fae5; padding: 8px 12px; border-radius: 6px; display: inline-block; margin-bottom: 15px; }

.barem-list { display: flex; flex-wrap: wrap; gap: 10px; }
.barem-badge {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Rozetler ve Butonlar */
.badge { padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-passive { background: #fee2e2; color: #991b1b; }

.action-buttons { display: flex; gap: 5px; }
.btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; font-size: 0.85rem; transition: .2s; }
.btn-edit { background: #eff6ff; color: #2563eb; }
.btn-edit:hover { background: #2563eb; color: #fff; }
.btn-delete { background: #fef2f2; color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: #fff; }

.empty-state { padding: 40px; text-align: center; color: #94a3b8; font-size: 1rem; }