
/* ===== Common Layouts ===== */
.dashboard-container,
.bank-transactions,
.invite-accountant,
.vat-submission {
    padding: 2rem;
}

.dashboard-container, footer {
    background-color: #212529;
}

.balance-summary {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.next-deadline {
    margin-bottom: 2rem;
}

.progress-bar {
    background: #eee;
    height: 10px;
    width: 200px;
    border-radius: 5px;
}

.progress {
    background: #4caf50;
    height: 100%;
    border-radius: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tile {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: black;
    transition: transform 0.2s;
}

.tile:hover {
    transform: translateY(-5px);
}

.tile img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

th {
    background: #f0f0f0;
}

/* ===== Forms ===== */
.invite-accountant form,
.vat-submission form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
button {
    padding: 0.5rem;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* Specific button colors */
.invite-accountant button {
    background: #2196f3;
}

.vat-submission button {
    background: #4caf50;
}

.dashboard-header {
    background: white;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    height: 80px;
    margin-right: 15px;
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.nav-icon img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-icon img:hover {
    transform: scale(1.1);
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
}

/* Sidebar */
.ts-sidebar {
    background: #fff;
    width: 70px; /* compact */
    transition: width 0.2s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.ts-sidebar:hover {
    width: 220px; /* expanded */
}

/* Branding */
.ts-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: height 0.2s ease;
}

.ts-brand img {
    width: 68px;
    transition: width 0.2s ease, height 0.2s ease;
}

.ts-sidebar:hover .ts-brand img {
    width: 120px; /* Bigger logo */
}

/* Nav links */
.ts-nav, .ts-icons {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.ts-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    gap: 10px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
}

.ts-item img {
    width: 24px;
    height: 24px;
}

.ts-item .label {
    opacity: 0;
    transition: opacity 0.2s;
}

.ts-sidebar:hover .ts-item .label {
    opacity: 1;
}

.ts-item:hover {
    background: #f4f4f4;
}

.ts-item.active {
    background: #e6f7f1;
    color: #0f8a5f;
}

/* Badge always visible */
.ts-item .badge {
    position: absolute;
    top: 0px;
    left: 28px;
    background: #e53935;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    line-height: 1;
    z-index: 10;
}

/* Main content */
.ts-content {
    margin-left: 50px;
    flex: 1;
    transition: margin-left 0.2s ease;
    width: calc(100% - 50px);
}

.ts-sidebar:hover + .ts-content {
    margin-left: 220px;
    width: calc(100% - 220px);
}

/* styled tooltip using data-tooltip */
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);        /* show to the right of the sidebar item */
  transform: translateY(-50%) translateX(6px);
  background: #222;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity .15s ease, transform .15s ease;
}

/* tooltip arrow */
.has-tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-left: 6px solid #222;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity .15s ease;
}

/* show on hover (or focus for keyboard) */
.has-tooltip:hover::after,
.has-tooltip:hover::before,
.has-tooltip:focus::after,
.has-tooltip:focus::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

