body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px 40px;
    color: #333;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-box {
    background-color: #c05a22;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 20px;
}
.title {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
}
.live-status {
    color: #2e7d32;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    margin-right: 5px;
}
.user-email {
    font-size: 12px;
    color: #666;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}
.btn-logout {
    background-color: transparent;
    border: 1px solid #c05a22;
    color: #c05a22;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
.btn-logout:hover {
    background-color: #c05a22;
    color: white;
}

/* Incident Summary */
.summary {
    margin-bottom: 20px;
}
.summary h3 {
    color: #666;
    font-size: 12px;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.summary .count {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
th {
    text-align: left;
    padding: 15px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px;
}
th.sortable {
    color: #c05a22;
    cursor: pointer;
    user-select: none;
}
th.sortable:hover {
    background-color: #fdf6f2;
}
td {
    padding: 15px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    color: #555;
    vertical-align: top;
}
.plate-number {
    font-weight: bold;
    color: #000;
}
.datetime-cell {
    line-height: 1.4;
    white-space: nowrap;
}
.blockchain-cell {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #444;
    word-break: break-all;
    max-width: 240px;
}

/* --- Login / Sign Up Page Styling --- */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}
.auth-card {
    background: white;
    width: 100%;
    max-width: 380px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 6px;
}
.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-tab.active {
    color: #c05a22;
    border-bottom: 2px solid #c05a22;
    margin-bottom: -2px;
}
.auth-error {
    color: #d32f2f;
    font-size: 12px;
    min-height: 18px;
    margin: 0 0 10px 0;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: #c05a22;
}
.btn-primary {
    width: 100%;
    background-color: #c05a22;
    color: white;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #a74c1b;
}
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}
.divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 11px;
    position: relative;
}
.btn-google {
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-google:hover {
    background-color: #f7f7f7;
}