/* Rapid KL Tracker - CSS (Mobile-First) */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #1c1e21;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

header p {
    font-size: 16px;
    color: #65676b;
    margin-top: 0;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Status Card Styling --- */
#status-card {
    border-left: 10px solid #ddd;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 15px;
}

.status-header {
    display: flex;
    align-items: center;
}

.status-icon {
    font-size: 40px;
    margin-right: 20px;
}

.status-text h2 {
    font-size: 28px;
    margin: 0;
}

.status-text p {
    margin: 5px 0 0;
    color: #65676b;
    font-size: 14px;
}

/* --- Verification UI --- */
.verify-container {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.verify-label {
    font-size: 14px;
    color: #65676b;
    margin-bottom: 12px;
}

.verify-buttons {
    display: flex;
    gap: 12px;
}

/* Status Card Colors */
.status-smooth { border-left-color: #4cd137 !important; }
.status-slow { border-left-color: #fbc531 !important; }
.status-interrupted { border-left-color: #e84118 !important; }

/* Buttons Style (Thumb-Friendly) */
.btn {
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.1s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.btn-primary, .btn-confirm { background-color: #007bff; color: white; }
.btn-secondary, .btn-resolve { background-color: #65676b; color: white; }

.btn-confirm, .btn-resolve {
    padding: 12px 10px; /* Smaller height for verification buttons */
    font-size: 16px;
    margin-bottom: 0;
}

.btn-smooth { background-color: #4cd137; color: white; }
.btn-slow { background-color: #fbc531; color: white; }
.btn-interrupted { background-color: #e84118; color: white; }

.button-group {
    display: flex;
    flex-direction: column;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Category Grid Styling */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-btn {
    padding: 12px 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.category-btn.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    color: #007bff;
}

.category-btn:active {
    transform: scale(0.95);
}

/* Comments Styling */
.comment-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: #65676b;
}

textarea {
    resize: none;
    font-family: inherit;
    font-size: 16px;
}

footer {
    text-align: center;
    font-size: 12px;
    color: #65676b;
    margin-top: 40px;
}
