:root {
    --primary: #0056b3; 
    --accent: #28a745;
    --danger: #dc3545;
    --bg: #f4f6f9;
    --white: #ffffff;
    --dark: #343a40;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); margin: 0; color: var(--dark); line-height: 1.6; }
.container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.card { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* Header */
header { background: var(--white); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px;}
.brand { font-weight: bold; font-size: 1.5rem; color: var(--primary); text-decoration: none; }
.btn-nav { padding: 8px 15px; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 4px; display:inline-block; margin-left: 5px;}
.btn-nav:hover { background: var(--primary); color: white; }

/* Forms */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

/* Buttons */
.btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; color: white; font-size: 1rem; text-decoration: none; }
.btn-primary { background: var(--primary); }
.btn-success { background: var(--accent); }
.btn-danger { background: var(--danger); }

/* UPDATED: Darker Grey for better visibility */
.btn-grey { background-color: #343a40; color: white; } 
.btn-grey:hover { background-color: #23272b; }

.btn-sm { padding: 5px 10px; font-size: 0.85rem; margin-right: 5px; border:none; border-radius:3px; cursor:pointer; color:white; }

/* Ticket List */
.ticket-item { border-left: 5px solid #ddd; padding: 20px; margin-bottom: 15px; background: #fff; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ticket-high { border-left-color: var(--danger); background: #fff5f5; }
.ticket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }

/* Badges & Details */
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; color: white; display: inline-block; font-weight:bold; }
.bg-open { background: var(--accent); }
.bg-pending { background: #ffc107; color: #333; }
.bg-closed { background: #6c757d; }
.log-entry { font-size: 0.85rem; color: #666; border-bottom: 1px solid #eee; padding: 5px 0; }
.contact-info { font-size: 0.9rem; color: #555; background: #f9f9f9; padding: 10px; border-radius: 5px; margin: 10px 0; }
.admin-controls { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #ccc; text-align: right; }

/* Edit Mode */
.edit-box { display: none; margin-top: 10px; }
.edit-btn { font-size: 0.8rem; color: var(--primary); cursor: pointer; text-decoration: underline; margin-left: 10px; }
.ticket-desc { white-space: pre-wrap; }

/* Search Bar */
.search-container { margin-bottom: 20px; display: flex; gap: 10px; }
.search-input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; text-align: center; }
    .ticket-header { flex-direction: column; }
    .ticket-header > div { width: 100%; }
    .ticket-header div:last-child { 
        text-align: left !important; 
        margin-left: 0 !important; 
        margin-top: 10px; 
        display: flex;
        gap: 10px;
    }
    .btn-sm { display: block; width: 100%; margin-bottom: 8px; padding: 10px; }
    .container { padding: 10px; }
    .card { padding: 15px; }
    .search-container { flex-direction: column; }


/* --- LOGO STYLING --- */
.logo-img {
    height: 60px; /* Adjust this number to make the logo bigger/smaller */
    width: auto;
    display: block;
}

/* Update Mobile to ensure logo centers nicely */
@media (max-width: 768px) {
    .header-spacer { display: none; } /* Hide the left spacer on phones */
}

/* --- FILTER BUTTONS --- */
.filter-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-filter {
    background: white;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 16px;
    border-radius: 20px; /* Rounded 'pill' shape */
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #e9ecef;
}

.btn-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
}