/* ===== Global Styles ===== */
body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Poppins', sans-serif;
}

/* HEADER */
.header{
  background:#fff;
  padding:8px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #eaeaea;
  position:sticky;
  top:0;
  z-index:1000;
  min-height:52px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
}

.header-left{display:flex;align-items:center;gap:12px}
.menu-icon{font-size:20px;cursor:pointer;color:#2c3e50;transition:color 0.2s}
.menu-icon:hover{color:#2980b9}
.logo img{height:32px}

.header-right{display:flex;align-items:center;gap:16px}

/* ICONS - BORESHWA */
.header-icon{
  font-size:18px;
  color:#555;
  cursor:pointer;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:8px;
  transition:all 0.2s ease;
  text-decoration:none;
}
.header-icon:hover{
  background:#f8f9fa;
  color:#2980b9;
  transform:scale(1.05);
}

/* BADGE - REKEBISHWA */
.header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e74c3c;
  color: white;
  font-size: 9px;
  font-weight: 600;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* AVATAR - HERUFI MBILI, BILA HOVER */
.avatar{
  width:28px;
  height:28px;
  background:#fff;
  color:#2c3e50;
  font-weight:600;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:50%;
  font-size:13px;
  border:1px solid #2c3e50;
  cursor:pointer;
  position:relative;
  /* No hover effect */
}

/* MENU - BORESHWA SANA */
.main-menu{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  background:#fff;
  display:none;
  flex-direction:column;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  border-radius:0 0 8px 8px;
  border:1px solid #eaeaea;
  border-top:none;
}

.main-menu a{
  color:#2c3e50;
  padding:12px 18px;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'Poppins', sans-serif;
  font-weight:500;
  transition:all 0.2s;
  font-size:14px;
  position:relative;
}
.main-menu a:hover{
  background:#f8f9fa;
  color:#2980b9;
  padding-left:22px;
}
.main-menu a i{
  width:18px;
  text-align:center;
}

.main-menu.show{display:flex}

/* DROPDOWN WRAPPERS */
.services-wrapper,
.billing-wrapper,
.dropdown-wrapper{
  position:relative;
  display:flex;
  flex-direction:column;
}

.services-dropdown,
.billing-dropdown,
.dropdown-content{
  display:none;
  flex-direction:column;
  background:#fff;
  margin-left:0;
}

.services-dropdown a,
.billing-dropdown a,
.dropdown-content a{
  padding-left:16px;
  color:#2c3e50;
  font-family:'Poppins', sans-serif;
  font-weight:400;
  font-size:13px;
  transition:all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.services-dropdown a::before,
.billing-dropdown a::before,
.dropdown-content a::before {
  content: "";
  width: 18px;
}
.services-dropdown a:hover,
.billing-dropdown a:hover,
.dropdown-content a:hover{
  background:#f8f9fa;
  color:#2980b9;
  padding-left:18px;
}

.services-wrapper.show .services-dropdown,
.billing-wrapper.show .billing-dropdown,
.dropdown-wrapper.show .dropdown-content{
  display:flex;
}

/* CHEVRON ROTATION */
.dropdown-chevron {
  margin-left: 6px;
  font-size: 11px;
  transition: transform 0.25s ease;
}

.dropdown-wrapper.show .dropdown-chevron {
  transform: rotate(180deg);
  color:#2980b9;
}

/* SUPPORT DROPDOWN */
.support-wrapper{
  display:flex;
  flex-direction:column;
}
.support-menu{
  display:none;
  background:#fff;
  margin-left:0;
}
.support-menu a{
  padding-left:16px;
  font-family:'Poppins', sans-serif;
  font-size:13px;
  color:#2c3e50;
  transition:all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-menu a::before {
  content: "";
  width: 18px;
}
.support-menu a:hover{
  background:#f8f9fa;
  color:#2980b9;
  padding-left:18px;
}
.support-menu.show{
  display:block;
}

/* JOSE USER DROPDOWN - BORESHWA */
.jose-dropdown-menu{
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    flex-direction: column;
    font-family:'Poppins', sans-serif;
    overflow:hidden;
}

.jose-dropdown-menu.show {
    display: flex;
    flex-direction: column;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.jose-dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color:#333; 
    text-decoration:none;
    display:flex; 
    align-items:center; 
    justify-content:flex-start;
    gap:10px; 
    cursor:pointer; 
    transition:all 0.2s;
    font-weight:500;
}
.jose-dropdown-item:hover { 
    background:#f8f9fa; 
    color:#2980b9;
    padding-left:18px;
}
.jose-dropdown-divider { 
    border-top:1px solid #f0f0f0; 
    margin:6px 0; 
}

.jose-user-info { 
    display:flex; 
    flex-direction:column; 
    gap:4px; 
    padding:12px 16px;
    background:#f8f9fa;
    border-bottom:1px solid #eaeaea;
}
.jose-user-name { 
    font-size:14px; 
    margin:0; 
    font-weight:600; 
    color:#2c3e50;
}
.jose-user-email { 
    font-size:12px; 
    color:#777; 
    margin:0; 
    font-weight:400;
}

.jose-logout-btn { 
    background-color: #2980b9; 
    color:#fff; 
    border-radius:6px; 
    text-align:center; 
    transition:all 0.2s; 
    margin:6px 16px;
    font-weight:600;
    padding:10px;
}
.jose-logout-btn:hover { 
    background-color: #2471a3; 
    color:#fff; 
    transform:translateY(-1px);
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

/* DESKTOP */
@media(min-width:768px){
  .menu-icon{display:none}
  .main-menu{
    position:static;
    display:flex!important;
    flex-direction:row;
    background:none;
    box-shadow:none;
    border:none;
    border-radius:0;
  }
  .main-menu a{
    color:#2c3e50;
    padding:8px 14px;
    border-radius:6px;
    font-weight:600;
    font-size:14px;
    margin:0 4px;
  }
  .main-menu a:hover{
    background:#f8f9fa;
    color:#2980b9;
    padding-left:16px;
  }
  .support-wrapper,
  .services-wrapper,
  .billing-wrapper,
  .dropdown-wrapper{
    position:relative;
  }
  .support-menu,
  .services-dropdown,
  .billing-dropdown,
  .dropdown-content{
    position:absolute;
    top:100%;
    left:0;
    min-width:180px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
    border:1px solid #eaeaea;
    margin-left:0;
  }
  .support-menu a,
  .services-dropdown a,
  .billing-dropdown a,
  .dropdown-content a{
    padding-left:16px;
  }
  .support-menu a:hover,
  .services-dropdown a:hover,
  .billing-dropdown a:hover,
  .dropdown-content a:hover{
    padding-left:18px;
  }
}

/* ACTIVE STATE */
.main-menu a.active{
  color:#2980b9;
  background:#f8f9fa;
  font-weight:600;
}
.dropdown-wrapper.show > a,
.support-wrapper.show > a{
  color:#2980b9;
  background:#f8f9fa;
}
/* ===== Page Title Section ===== */
.title-container{
    background:#2980b9;
    color:#fff;
    padding:20px 20px;
    border-radius:0 0 18px 18px;
    margin-bottom:20px;
}

.title-heading h1{
    margin:0;
    font-size:1.6rem;
    line-height:1.3;
}

.title-breadcrumb{
    margin-top:4px; 
    font-size:.85rem;
    line-height:1.3;
}

.title-breadcrumb a{
    color:#fff;
    text-decoration:none;
}


/* ===== Main Container ===== */
.container-custom {
    max-width: 450px;
    width: 95%;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* ===== Found / Empty State ===== */
.found-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.found-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid #e6e6e6;
}

.found-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.8rem 0;
    color: #2573a6;
    line-height: 1.4;
}

/* ===== Buttons ===== */
.found-btn {
    padding: 0.7rem 1.6rem;
    background: #2573a6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.found-btn:hover {
    background: #2980b9;
    color: #ffffff;
}

.found-btn i {
    font-size: 1.1rem;
}

/* ===== Messages (Success / Error) ===== */
.message {
    margin: 0 auto 25px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    max-width: 400px;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.success {
    border-color: #009688;
}

.message.success .icon {
    color: #009688;
}

.message.error {
    border-color: #e74c3c;
}

.message.error .icon {
    color: #e74c3c;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .found-card {
        padding: 2rem 1.5rem;
    }

    .found-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .found-btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
    }

    .found-btn i {
        font-size: 1rem;
    }
}

@media(min-width:768px){
    .title-heading h1{
        font-size:1.9rem;
    }
}


/* =========================
   TABLE WRAPPER
   ========================= */
.table-wrapper {
    padding: 2rem;
    overflow-x: auto;
}

/* =========================
   TABLE CARD
   ========================= */
.table-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow: hidden;
    min-width: 600px;
}

/* =========================
   TABLE STRUCTURE
   ========================= */
.table-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table-table thead {
    background: #f9fafb;
}

.table-table th,
.table-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: .9rem;
    text-align: left;
}

.table-table th {
    font-weight: 600;
    color: #374151;
}

/* Hover kwenye row */
.table-table tr:hover {
    background: #f9fafb;
    cursor: pointer;
}

/* =========================
   BADGES STATUS
   ========================= */
.table-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

/* Status za table */
.table-badge.open { background: #f39c12; }      
.table-badge.answered { background: #3498db; }  
.table-badge.resolved { background: #2ecc71; }   
.table-badge.paid { background: #27ae60; }    
.table-badge.unpaid { background: #c62828; }    

/* =========================
   BUTTONS
   ========================= */
.table-view-btn {
    color: #fff;
    background: #2980b9;
    padding: .4rem .7rem;
    border-radius: 4px;
    font-size: .85rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.table-view-btn:hover {
    background: #1f6391;
}

/* =========================
   DROPDOWN MENU
   ========================= */
.table-dropdown {
    position: relative;
    display: inline-block;
}

.table-dropdown-toggle {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-dropdown-toggle:hover { border-color: #2980b9; }

.table-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
    min-width: 120px;
}

.table-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: 0.2s;
}

.table-dropdown-menu a:hover {
    background: #2980b9;
    color: #fff;
}

.table-dropdown.open .table-dropdown-menu { display: block; }
.table-dropdown-menu a.active { background: #2980b9; color: #fff; }

/* =========================
   FILTERS & SEARCH
   ========================= */
.table-filters {
    max-width: 900px;
    width: 95%;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.table-search-box {
    display: flex;
    gap: 8px;
}

.table-search-box input {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    min-width: 200px;
}

.table-search-box input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(41,128,185,.15);
}

.table-search-box button {
    padding: 7px 14px;
    border: none;
    background: #2980b9;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   PAGINATION
   ========================= */
.table-pagination-wrapper {
    max-width: 900px;
    width: 95%;
    margin: 25px auto;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.table-pagination-wrapper a {
    padding: 6px 12px;
    border: 1px solid #2980b9;
    border-radius: 6px;
    text-decoration: none;
    color: #2980b9;
    transition: 0.2s;
}

.table-pagination-wrapper a:hover { background: #2980b9; color: #fff; }
.table-pagination-wrapper a.active { background: #2980b9; color: #fff; }
.table-pagination-wrapper a.disabled { opacity: .5; pointer-events: none; }

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:768px) {
    .table-wrapper { padding: 1rem; }
}