/* ==========================================================================
   HELLO BUREAUCRAT - CSS Styles
   Citizen complaint and rating system for government services
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hb-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.hb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}

.hb-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.hb-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hb-hero-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hb-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hb-hero-visual {
    position: relative;
    z-index: 1;
}

.hb-stats-ring {
    display: flex;
    gap: 2rem;
}

.hb-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hb-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.hb-stat-label {
    display: block;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.hb-btn-primary {
    background: var(--color-gold);
    color: var(--color-primary-dark);
}

.hb-btn-primary:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.hb-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hb-btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.hb-btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.hb-btn-danger {
    background: var(--color-danger);
    color: var(--color-white);
}

.hb-btn-danger:hover {
    background: #dc2626;
}

.hb-btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.hb-btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */
.hb-section {
    padding: 3rem 0;
}

.hb-section-alt {
    background: var(--color-gray-100);
    margin: 0 -1rem;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
}

.hb-section-title {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hb-section-title i {
    color: var(--color-gold);
}

.hb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.hb-view-all {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.hb-view-all:hover {
    color: var(--color-gold-dark);
    gap: 0.75rem;
}

/* ==========================================================================
   QUICK ACTIONS GRID
   ========================================================================== */
.hb-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.hb-action-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-black);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: var(--shadow-card);
}

.hb-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-gold);
}

.hb-action-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
}

.hb-action-report .hb-action-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.hb-action-incident .hb-action-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hb-action-time .hb-action-icon { background: linear-gradient(135deg, #10b981, #059669); }
.hb-action-search .hb-action-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.hb-action-escalate .hb-action-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.hb-action-track .hb-action-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.hb-action-process .hb-action-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.hb-action-metrics .hb-action-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.hb-action-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0;
}

.hb-action-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0;
}

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */
.hb-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hb-category-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--color-black);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.hb-category-card:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.hb-category-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: var(--color-gold);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hb-category-card:hover .hb-category-icon {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ==========================================================================
   COMPLAINTS LIST
   ========================================================================== */
.hb-complaints-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-complaint-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

.hb-complaint-card:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-gold);
}

.hb-complaint-status {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.hb-status-pending { background: #fef3c7; color: #92400e; }
.hb-status-in_progress { background: #dbeafe; color: #1e40af; }
.hb-status-escalated { background: #fce7f3; color: #9d174d; }
.hb-status-resolved { background: #d1fae5; color: #065f46; }
.hb-status-closed { background: #e5e7eb; color: #374151; }
.hb-status-rejected { background: #fee2e2; color: #991b1b; }

.hb-complaint-content {
    flex: 1;
}

.hb-complaint-title {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-base);
}

.hb-complaint-title a {
    color: var(--color-black);
    text-decoration: none;
}

.hb-complaint-title a:hover {
    color: var(--color-primary);
}

.hb-complaint-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.hb-complaint-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-rating {
    color: var(--color-gold);
    font-size: var(--font-size-sm);
}

.hb-rating .far {
    color: var(--color-gray-400);
}

.hb-complaint-arrow {
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.hb-complaint-card:hover .hb-complaint-arrow {
    color: var(--color-gold);
    transform: translateX(4px);
}

/* ==========================================================================
   BUREAUCRATS GRID
   ========================================================================== */
.hb-bureaucrats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hb-bureaucrat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-black);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.hb-bureaucrat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.hb-bureaucrat-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hb-bureaucrat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-bureaucrat-avatar i {
    font-size: 60px;
    color: var(--color-gray-400);
}

.hb-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-success);
    color: var(--color-white);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--color-white);
}

.hb-bureaucrat-info {
    flex: 1;
    min-width: 0;
}

.hb-bureaucrat-info h4 {
    margin: 0 0 0.25rem;
    font-size: var(--font-size-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-bureaucrat-title,
.hb-bureaucrat-dept {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-bureaucrat-rating {
    text-align: center;
}

.hb-rating-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-rating-score i {
    color: var(--color-gold);
}

.hb-review-count {
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
}

/* ==========================================================================
   HOW IT WORKS - STEPS
   ========================================================================== */
.hb-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.hb-step-number {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hb-step-content h3 {
    font-size: var(--font-size-lg);
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

.hb-step-content p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0;
}

.hb-step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin-top: 30px;
}

/* ==========================================================================
   CALL TO ACTION
   ========================================================================== */
.hb-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
    color: var(--color-white);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    text-align: center;
}

.hb-cta h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: 0.5rem;
}

.hb-cta p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hb-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   PAGE HEADER & BREADCRUMB
   ========================================================================== */
.hb-page-header {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.hb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.hb-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.hb-breadcrumb a:hover {
    text-decoration: underline;
}

.hb-breadcrumb i {
    font-size: 10px;
}

.hb-page-header h1 {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hb-page-header h1 i {
    color: var(--color-gold);
}

.hb-page-header p {
    color: var(--color-gray-600);
    margin: 0;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */
.hb-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.hb-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hb-form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-300);
}

.hb-form-section:last-of-type {
    border-bottom: none;
}

.hb-form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hb-step-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-circle);
    background: var(--color-gold);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

.hb-form-section-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.hb-form-group {
    margin-bottom: 1.5rem;
}

.hb-form-group:last-child {
    margin-bottom: 0;
}

.hb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.hb-form-group .required {
    color: var(--color-danger);
}

.hb-form-group .form-control,
.hb-form-group .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}

.hb-form-group .form-control:focus,
.hb-form-group .form-select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.hb-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hb-form-help {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-top: 0.5rem;
}

.hb-form-error {
    color: var(--color-danger);
    font-size: var(--font-size-sm);
    margin-top: 0.5rem;
}

.hb-form-checks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hb-form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hb-form-check:hover {
    background: var(--color-gray-200);
}

.hb-form-check input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
}

.hb-form-check label {
    display: flex;
    flex-direction: column;
    margin: 0;
    cursor: pointer;
}

.hb-form-check label i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.hb-form-check label small {
    color: var(--color-gray-600);
    font-weight: normal;
    margin-top: 0.25rem;
}

.hb-form-note {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.hb-form-actions {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--color-gray-100);
}

/* Star Rating Input */
.hb-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.hb-star-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hb-star-option input {
    display: none;
}

.hb-star-option label {
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.hb-star-option:hover label,
.hb-star-option:hover ~ .hb-star-option label,
.hb-star-option input:checked ~ label,
.hb-star-option.hb-star-hover label {
    color: var(--color-gold);
}

/* ==========================================================================
   COMPLAINT DETAIL PAGE
   ========================================================================== */
.hb-complaint-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.hb-complaint-main {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.hb-detail-header {
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-300);
}

.hb-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hb-detail-header h1 {
    font-size: var(--font-size-2xl);
    margin: 0 0 1rem;
    color: var(--color-black);
}

.hb-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.hb-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-ref {
    font-family: monospace;
    background: var(--color-gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.hb-detail-section {
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.hb-detail-section:last-child {
    border-bottom: none;
}

.hb-detail-section h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-detail-section h3 i {
    color: var(--color-gold);
}

.hb-detail-content {
    color: var(--color-gray-700);
    line-height: 1.7;
}

/* Timeline */
.hb-timeline {
    position: relative;
    padding-left: 2rem;
}

.hb-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gray-300);
}

.hb-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.hb-timeline-item:last-child {
    padding-bottom: 0;
}

.hb-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.hb-timeline-resolved .hb-timeline-dot {
    background: var(--color-success);
    box-shadow: 0 0 0 2px var(--color-success);
}

.hb-timeline-date {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    display: block;
    margin-bottom: 0.25rem;
}

.hb-timeline-content p {
    margin: 0;
    font-size: var(--font-size-sm);
}

.hb-timeline-content small {
    color: var(--color-gray-600);
}

/* Responses */
.hb-responses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-response {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.hb-response-official {
    background: #dbeafe;
    border-left: 4px solid var(--color-info);
}

.hb-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hb-response-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.hb-response-author i {
    color: var(--color-gray-500);
}

.hb-badge-official {
    background: var(--color-info);
    color: var(--color-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.hb-response-date {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.hb-response-content {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
}

.hb-empty-responses {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
}

.hb-empty-responses i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hb-add-response {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-300);
}

.hb-add-response h4 {
    margin: 0 0 1rem;
    color: var(--color-primary);
}

/* Sidebar */
.hb-complaint-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hb-sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.hb-sidebar-card h4 {
    font-size: var(--font-size-base);
    color: var(--color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
}

.hb-details-list {
    margin: 0;
}

.hb-details-list dt {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

.hb-details-list dd {
    margin: 0 0 1rem;
    font-weight: 500;
}

.hb-details-list dd:last-child {
    margin-bottom: 0;
}

.hb-details-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.hb-details-list a:hover {
    text-decoration: underline;
}

.hb-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.hb-overdue {
    color: var(--color-danger);
}

.hb-overdue-badge {
    display: inline-block;
    background: var(--color-danger);
    color: var(--color-white);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    margin-left: 0.5rem;
}

/* Metrics */
.hb-metrics {
    display: flex;
    gap: 1.5rem;
}

.hb-metric {
    text-align: center;
    flex: 1;
}

.hb-metric-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-metric-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
}

/* Share Buttons */
.hb-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.hb-share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.hb-share-twitter { background: #1DA1F2; }
.hb-share-facebook { background: #4267B2; }
.hb-share-whatsapp { background: #25D366; }
.hb-share-copy { background: var(--color-gray-500); }

.hb-share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.hb-filter-bar {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.hb-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-filter-group {
    display: flex;
    gap: 0.5rem;
}

.hb-filter-group .form-control {
    flex: 1;
}

.hb-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hb-filter-options .form-select {
    min-width: 180px;
}

.hb-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-date-range span {
    color: var(--color-gray-600);
}

.hb-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hb-results-count {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   COMPLAINTS GRID
   ========================================================================== */
.hb-complaints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.hb-complaint-card-full {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-complaint-card-full:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.hb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hb-card-title {
    margin: 0;
    font-size: var(--font-size-lg);
}

.hb-card-title a {
    color: var(--color-black);
    text-decoration: none;
}

.hb-card-title a:hover {
    color: var(--color-primary);
}

.hb-card-excerpt {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.6;
}

.hb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.hb-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-rating-mini {
    color: var(--color-gold);
    font-weight: 600;
}

.hb-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200);
    margin-top: auto;
}

.hb-views {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

.hb-card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-card-link:hover {
    color: var(--color-gold-dark);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.hb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-300);
}

.hb-page-link {
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.hb-page-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.hb-page-numbers {
    display: flex;
    gap: 0.25rem;
}

.hb-page-current {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* ==========================================================================
   TRACK COMPLAINT PAGE
   ========================================================================== */
.hb-track-container {
    max-width: 700px;
    margin: 0 auto;
}

.hb-track-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.hb-track-input-group {
    display: flex;
    gap: 0.5rem;
}

.hb-track-input-group .form-control {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: var(--font-size-lg);
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
}

.hb-track-input-group .form-control:focus {
    outline: none;
    border-color: var(--color-gold);
}

.hb-track-hint {
    display: block;
    margin-top: 1rem;
    color: var(--color-gray-600);
}

.hb-track-result {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hb-track-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hb-track-header h2 {
    margin: 0;
    font-family: monospace;
    font-size: var(--font-size-xl);
}

.hb-status-lg {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.hb-track-details {
    padding: 2rem;
}

.hb-track-details h3 {
    margin: 0 0 1.5rem;
    color: var(--color-black);
}

.hb-track-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hb-track-info {
    text-align: center;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.hb-info-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    margin-bottom: 0.25rem;
}

.hb-info-value {
    font-weight: 600;
    color: var(--color-black);
}

.hb-track-timeline h4 {
    margin: 0 0 1rem;
    color: var(--color-primary);
}

.hb-status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.hb-status-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--color-gray-300);
}

.hb-status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.hb-step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background: var(--color-gray-300);
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hb-step-complete .hb-step-icon {
    background: var(--color-success);
    color: var(--color-white);
}

.hb-status-step span {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.hb-step-complete span {
    color: var(--color-success);
    font-weight: 600;
}

.hb-track-actions {
    text-align: center;
}

.hb-track-not-found {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.hb-track-not-found i {
    font-size: 3rem;
    color: var(--color-warning);
    margin-bottom: 1rem;
}

.hb-track-not-found h3 {
    margin: 0 0 0.5rem;
    color: var(--color-black);
}

.hb-track-not-found p {
    color: var(--color-gray-600);
    margin: 0;
}

/* ==========================================================================
   BUREAUCRAT LIST
   ========================================================================== */
.hb-bureaucrats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-bureaucrat-card-full {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--color-black);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.hb-bureaucrat-card-full:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(8px);
}

.hb-bureaucrat-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hb-bureaucrat-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-bureaucrat-avatar-lg i {
    font-size: 80px;
    color: var(--color-gray-400);
}

.hb-bureaucrat-details {
    flex: 1;
}

.hb-bureaucrat-details h3 {
    margin: 0 0 0.25rem;
    font-size: var(--font-size-lg);
}

.hb-bureaucrat-details p {
    margin: 0 0 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.hb-bureaucrat-details p i {
    width: 16px;
    text-align: center;
    margin-right: 0.25rem;
}

.hb-bureaucrat-stats {
    text-align: center;
}

.hb-rating-large {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-rating-large i {
    color: var(--color-gold);
}

/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */
.hb-profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.hb-profile-header {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.hb-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 4px solid var(--color-gold);
}

.hb-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-profile-avatar i {
    font-size: 120px;
    color: var(--color-gray-400);
}

.hb-verified-badge-lg {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hb-profile-info {
    flex: 1;
}

.hb-profile-info h1 {
    margin: 0 0 0.25rem;
    font-size: var(--font-size-2xl);
    color: var(--color-black);
}

.hb-profile-title {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    margin: 0 0 0.75rem;
}

.hb-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hb-profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.hb-profile-meta span i {
    color: var(--color-primary);
}

.hb-profile-rating {
    margin-top: 1rem;
}

.hb-rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hb-rating-big {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-stars {
    color: var(--color-gold);
    font-size: var(--font-size-xl);
}

.hb-stars .far {
    color: var(--color-gray-400);
}

.hb-review-total {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.hb-profile-actions {
    flex-shrink: 0;
}

.hb-profile-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.hb-profile-section h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-profile-section h3 i {
    color: var(--color-gold);
}

/* Mini Complaints */
.hb-mini-complaints {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hb-mini-complaint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-black);
    transition: all var(--transition-fast);
}

.hb-mini-complaint:hover {
    background: var(--color-gray-200);
}

.hb-status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    flex-shrink: 0;
}

.hb-status-dot.hb-status-pending { background: #f59e0b; }
.hb-status-dot.hb-status-in_progress { background: #3b82f6; }
.hb-status-dot.hb-status-resolved { background: #10b981; }
.hb-status-dot.hb-status-closed { background: #6b7280; }

.hb-mini-title {
    flex: 1;
    font-size: var(--font-size-sm);
}

.hb-mini-date {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.hb-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.hb-view-all-link:hover {
    color: var(--color-gold-dark);
}

/* Reviews */
.hb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-review-card {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.hb-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hb-review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.hb-review-author i {
    color: var(--color-gray-500);
    font-size: 1.5rem;
}

.hb-review-rating {
    color: var(--color-gold);
}

.hb-review-rating .far {
    color: var(--color-gray-400);
}

.hb-review-title {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-base);
    color: var(--color-black);
}

.hb-review-text {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

.hb-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-300);
}

.hb-review-date {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
}

.hb-verified-review {
    font-size: var(--font-size-xs);
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hb-empty-reviews {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
}

.hb-empty-reviews i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hb-add-review {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-300);
}

.hb-add-review h4 {
    margin: 0 0 1.5rem;
    color: var(--color-primary);
}

.hb-star-rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hb-star-rating-input .hb-star-option label {
    font-size: 1.75rem;
}

.hb-login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.hb-login-prompt a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================================================
   DEPARTMENTS
   ========================================================================== */
.hb-dept-section {
    margin-bottom: 3rem;
}

.hb-dept-section-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-dept-section-title i {
    color: var(--color-gold);
}

.hb-depts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.hb-dept-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-black);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.hb-dept-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.hb-dept-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hb-dept-info {
    flex: 1;
    min-width: 0;
}

.hb-dept-info h3 {
    margin: 0 0 0.25rem;
    font-size: var(--font-size-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-dept-muni {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    margin: 0 0 0.25rem;
}

.hb-dept-stats {
    font-size: var(--font-size-xs);
    color: var(--color-gray-500);
    margin: 0;
}

.hb-dept-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-dept-rating i {
    color: var(--color-gold);
}

/* Department Detail */
.hb-dept-detail {
    max-width: 900px;
    margin: 0 auto;
}

.hb-dept-header {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.hb-dept-icon-large {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.hb-dept-header-info {
    flex: 1;
}

.hb-dept-type {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hb-dept-header-info h1 {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-2xl);
    color: var(--color-black);
}

.hb-dept-location {
    color: var(--color-gray-600);
    margin: 0 0 1rem;
}

.hb-dept-rating-display {
    margin-top: 1rem;
}

.hb-rating-big-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hb-rating-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.hb-stars-display {
    color: var(--color-gold);
    font-size: var(--font-size-xl);
}

.hb-total-reviews {
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.hb-dept-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.hb-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hb-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.hb-contact-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.hb-contact-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.hb-contact-item a:hover {
    text-decoration: underline;
}

.hb-officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.hb-official-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-black);
    transition: all var(--transition-fast);
}

.hb-official-card:hover {
    background: var(--color-gray-200);
}

.hb-official-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    overflow: hidden;
    flex-shrink: 0;
}

.hb-official-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-official-avatar i {
    font-size: 40px;
    color: var(--color-gray-400);
}

.hb-official-info {
    flex: 1;
    min-width: 0;
}

.hb-official-info h4 {
    margin: 0;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hb-official-info p {
    margin: 0;
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
}

.hb-official-rating {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.hb-official-rating i {
    color: var(--color-gold);
}

/* ==========================================================================
   RESPONSE TIMES / METRICS
   ========================================================================== */
.hb-metrics-section {
    margin-bottom: 3rem;
}

.hb-metrics-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-metrics-title i {
    color: var(--color-gold);
}

.hb-leaderboard {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hb-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

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

.hb-leaderboard-item:hover {
    background: var(--color-gray-100);
}

.hb-rank {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.hb-leaderboard-item:nth-child(1) .hb-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.hb-leaderboard-item:nth-child(2) .hb-rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
}

.hb-leaderboard-item:nth-child(3) .hb-rank {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

.hb-leaderboard-info {
    flex: 1;
}

.hb-leaderboard-info h4 {
    margin: 0 0 0.25rem;
}

.hb-leaderboard-info a {
    color: var(--color-black);
    text-decoration: none;
}

.hb-leaderboard-info a:hover {
    color: var(--color-primary);
}

.hb-dept-type-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
    margin: 0;
}

.hb-leaderboard-stats {
    display: flex;
    gap: 1rem;
}

.hb-stat-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-pill);
}

.hb-stat-pill .hb-stat-value {
    font-weight: 700;
    color: var(--color-primary);
}

.hb-stat-pill .hb-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-gray-600);
}

.hb-stat-pill.hb-stat-rating .hb-stat-label {
    color: var(--color-gold);
}

.hb-empty-leaderboard {
    padding: 3rem;
    text-align: center;
    color: var(--color-gray-500);
}

.hb-empty-leaderboard i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hb-info-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.hb-info-section h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hb-info-section h3 i {
    color: var(--color-gold);
}

.hb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hb-info-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.hb-info-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-circle);
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hb-info-card h4 {
    margin: 0 0 0.5rem;
    color: var(--color-black);
}

.hb-info-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

/* ==========================================================================
   MY COMPLAINTS
   ========================================================================== */
.hb-my-complaints-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.hb-my-complaints-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hb-my-complaint-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.hb-my-complaint-card:hover {
    box-shadow: var(--shadow-lg);
}

.hb-my-complaint-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    min-width: 100px;
}

.hb-my-complaint-info {
    flex: 1;
}

.hb-my-complaint-info .hb-ref {
    font-size: var(--font-size-xs);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.hb-my-complaint-info h3 {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-lg);
}

.hb-my-complaint-info h3 a {
    color: var(--color-black);
    text-decoration: none;
}

.hb-my-complaint-info h3 a:hover {
    color: var(--color-primary);
}

.hb-my-complaint-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

.hb-my-complaint-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hb-my-complaint-actions {
    flex-shrink: 0;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.hb-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-500);
}

.hb-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-gray-400);
}

.hb-empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--color-gray-600);
}

.hb-empty-state p {
    margin: 0 0 1.5rem;
}

.hb-empty-full {
    grid-column: 1 / -1;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 992px) {
    .hb-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hb-hero-content {
        max-width: 100%;
    }
    
    .hb-hero-actions {
        justify-content: center;
    }
    
    .hb-complaint-detail {
        grid-template-columns: 1fr;
    }
    
    .hb-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .hb-profile-meta {
        justify-content: center;
    }
    
    .hb-rating-display {
        justify-content: center;
    }
    
    .hb-dept-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hb-hero-title {
        font-size: 2rem;
    }
    
    .hb-stats-ring {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hb-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .hb-step-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    
    .hb-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hb-filter-options {
        flex-direction: column;
    }
    
    .hb-complaints-grid {
        grid-template-columns: 1fr;
    }
    
    .hb-bureaucrats-grid {
        grid-template-columns: 1fr;
    }
    
    .hb-depts-grid {
        grid-template-columns: 1fr;
    }
    
    .hb-track-input-group {
        flex-direction: column;
    }
    
    .hb-status-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hb-status-steps::before {
        display: none;
    }
    
    .hb-leaderboard-item {
        flex-wrap: wrap;
    }
    
    .hb-leaderboard-stats {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .hb-my-complaint-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hb-my-complaint-status {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hb-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .hb-cta-actions {
        flex-direction: column;
    }
    
    .hb-form-row {
        grid-template-columns: 1fr;
    }
    
    .hb-track-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hb-info-grid {
        grid-template-columns: 1fr;
    }
}
