/* =====================================================
   TRANSFER TAKİP SİSTEMİ - STYLES
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f6f8;
    color: #2d3748;
    line-height: 1.5;
    font-size: 14px;
}

a { color: #b8860b; text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: #f1f2f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: "SF Mono", Monaco, Consolas, monospace;
}

/* ============ AUTH (Login / Install) ============ */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}
.auth-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo h1 { color: #2d3748; font-size: 1.8em; margin-bottom: 5px; }
.auth-logo p { color: #718096; font-size: 0.9em; }

/* ============ NAVBAR ============ */
.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-logo {
    font-size: 1.2em;
    font-weight: 700;
    color: #2d3748 !important;
    text-decoration: none !important;
}
.nav-menu {
    display: flex;
    gap: 5px;
    flex: 1;
    margin-left: 30px;
}
.nav-menu a {
    padding: 8px 14px;
    border-radius: 6px;
    color: #4a5568 !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s;
}
.nav-menu a:hover { background: #f1f2f4; }
.nav-menu a.active {
    background: #fef3c7;
    color: #b8860b !important;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718096;
    font-size: 0.9em;
}
.btn-logout {
    padding: 6px 12px;
    background: #f1f2f4;
    border-radius: 6px;
    color: #4a5568 !important;
    font-weight: 500;
    text-decoration: none !important;
}
.btn-logout:hover { background: #fee; color: #c53030 !important; }

/* ============ MAIN ============ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 {
    font-size: 1.6em;
    color: #2d3748;
}

/* ============ STATS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.stat-label {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #2d3748;
}

/* ============ FILTER & FORM CARDS ============ */
.filter-card, .form-card, .table-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    padding: 20px;
}
.table-card { padding: 0; overflow: hidden; }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

/* ============ FORMS ============ */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.85em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}
.form-group label .required { color: #e53e3e; }
.form-group label small { color: #a0aec0; font-weight: normal; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s;
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-primary {
    background: #b8860b;
    color: white !important;
}
.btn-primary:hover { background: #a07408; }
.btn-secondary {
    background: #e2e8f0;
    color: #4a5568 !important;
}
.btn-secondary:hover { background: #cbd5e0; }
.btn-success { background: #48bb78; color: white !important; }
.btn-success:hover { background: #38a169; }
.btn-danger { background: #f56565; color: white !important; }
.btn-danger:hover { background: #e53e3e; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ TABLE ============ */
.reservations-table {
    width: 100%;
    border-collapse: collapse;
}
.reservations-table th {
    background: #f8f9fa;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.75em;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.reservations-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f2f4;
    vertical-align: middle;
}
.reservations-table tr:hover td { background: #fafbfc; }
.reservations-table tr:last-child td { border-bottom: none; }

.address-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-cell {
    white-space: nowrap;
}
.actions-cell a {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.15s;
    text-decoration: none !important;
}
.actions-cell a:hover { background: #f1f2f4; }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-planned {
    background: #e6f4ff;
    color: #0958d9;
    border: 1px solid #91caff;
}
.badge-completed {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.badge-cancelled {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* ============ ALERTS ============ */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.alert-error {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

/* ============ DETAIL PAGE ============ */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.detail-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.detail-card h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f2f4;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95em;
    gap: 12px;
}
.detail-row span { color: #718096; }
.detail-row strong { color: #2d3748; text-align: right; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; height: auto; padding: 10px; gap: 10px; }
    .nav-menu { margin-left: 0; flex-wrap: wrap; width: 100%; }
    .page-header { flex-direction: column; align-items: stretch; }
    .reservations-table { font-size: 12px; }
    .reservations-table th, .reservations-table td { padding: 8px; }
    .address-cell { max-width: 120px; }
}
