@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

body {
    background: linear-gradient(135deg, #f4f4f8 0%, #ffffff 60%, #f0f0ff 100%);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #1E1E1E;
    min-height: 100vh;
    opacity: 0.98;
    display: flex;
    flex-direction: column;
}

main.container, main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.bg-glass {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card, .kanban-card {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 16px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}
.card:hover, .kanban-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.btn-main, .btn-primary {
    background: #215751;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    border: none;
    transition: filter 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px 0 rgba(33,87,81,0.08);
}
.btn-main:hover, .btn-primary:hover, .btn-main:focus, .btn-primary:focus {
    background: #14332f;
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(33,87,81,0.18);
    filter: none;
    text-decoration: none;
}

.btn-outline {
    background: #fff;
    color: #215751;
    border: 1.5px solid #215751;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(33,87,81,0.04);
}
.btn-outline:hover, .btn-outline:focus {
    background: #215751;
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(33,87,81,0.18);
    text-decoration: none;
}

input[type="text"], input[type="password"], select, textarea {
    border-radius: 10px;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid #E0E0E0;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: #215751;
    outline: none;
}

.login-input {
    border-radius: 12px !important;
    padding: 13px 16px !important;
    font-size: 1.08rem !important;
    font-weight: 500 !important;
    border: 1.5px solid #E0E0E0 !important;
    box-shadow: 0 1px 6px rgba(33,87,81,0.07) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fff !important;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0 0 0;
    z-index: 100;
}
.sidebar .sidebar-item {
    padding: 12px 24px;
    border-radius: 8px;
    color: #1E1E1E;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar .sidebar-item:hover {
    background: #B2F0E5;
    color: #215751;
}

.topbar {
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.kanban-column {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 16px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.kanban-card {
    margin-bottom: 16px;
}

.kanban-status-todo { background: #E0E7FF; }
.kanban-status-inprogress { background: #FFF2CC; }
.kanban-status-review { background: #F8E1F4; }
.kanban-status-done { background: #D1FADF; }

.tag {
    display: inline-block;
    border-radius: 999px;
    font-size: 10px;
    padding: 2px 10px;
    background: #B2F0E5;
    color: #215751;
    margin-right: 6px;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.avatar-group {
    display: flex;
    align-items: center;
}
.avatar-group .avatar:not(:first-child) {
    margin-left: -8px;
}

.progress-bar-dot {
    display: flex;
    gap: 4px;
}
.progress-bar-dot .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7E5EFF;
}

/* Transitions & Interactions */
* {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

/* Footer user info */
.footer-user {
    display: flex;
    align-items: center;
    position: fixed;
    left: 24px;
    bottom: 16px;
    gap: 10px;
    font-size: 12px;
    color: #777C87;
}
.footer-user .avatar {
    width: 32px;
    height: 32px;
}
.footer-user .user-name {
    font-weight: 600;
    color: #215751;
}
.footer-user .user-email {
    font-size: 11px;
    color: #777C87;
}

.btn-link, a.btn-link {
    color: #215751 !important;
    font-weight: 500;
    text-decoration: none !important;
    margin-right: 0.5em;
    transition: color 0.2s, text-decoration 0.2s;
}
.btn-link:hover, .btn-link:focus, a.btn-link:hover, a.btn-link:focus {
    color: #14332f !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.nav-tabs .nav-link {
    color: #215751 !important;
    font-weight: 600;
    font-size: 1.08rem;
    border: none;
    background: none;
    transition: color 0.2s, background 0.2s;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    color: #14332f !important;
    background: #e6f2f0 !important;
    border-bottom: 2px solid #215751 !important;
}

/* Responsywność: desktop first, ale czytelność na mniejszych ekranach */
@media (max-width: 900px) {
    .topbar, .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .footer-user {
        left: 8px;
        bottom: 8px;
    }
} 

/* Styl paginacji - idealnie okrągłe przyciski, elipsa, gap, responsywność */
.pagination {
  gap: 6px;
}
.pagination .page-link.btn-main {
  border-radius: 50% !important;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 38px;
  margin: 0;
  background: #215751;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: background 0.15s;
  padding: 0;
}
.pagination .page-link.btn-main.active,
.pagination .page-item.active .page-link.btn-main {
  background: #1a423d;
  color: #fff;
  border: none;
}
.pagination .page-link.btn-main:hover {
  background: #1a423d;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background: none !important;
  color: #215751 !important;
  border: none !important;
  font-weight: bold;
  border-radius: 50% !important;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 38px;
  margin: 0;
  font-size: 1.08rem;
  padding: 0;
}
@media (max-width: 600px) {
  .pagination .page-link.btn-main, .pagination .page-item.disabled .page-link {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.98rem;
  }
  .pagination {
    gap: 3px;
  }
} 

/* Reports table enhancements */
.notes-ellipsis {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  display: inline-block;
}

@media (max-width: 768px) {
  .notes-ellipsis {
    max-width: 200px;
  }
}

th[aria-sort] {
  cursor: pointer;
}

th .sort-indicator {
  display: inline-block;
  width: 1em;
  margin-left: 4px;
  color: #215751;
  opacity: 0.8;
}

/* Documents table tweaks */
.table-fixed {
  table-layout: fixed;
  width: 100%;
}

.td-actions {
  overflow: visible !important;
  white-space: normal !important;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Billing badges */
.billing-badge {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: baseline;
  font-weight: 600;
  opacity: 0.95;
}
.billing-badge.packages { background: #e6f2f0; color: #215751; border: 1px solid #dbe7e5; }
.billing-badge.hours { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }

@media (max-width: 768px) {
  .billing-badge { font-size: 0.66rem; }
}

/* Per-company custom rate badge */
.rate-badge {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: baseline;
  font-weight: 700;
  opacity: 0.95;
  background: #e7f5ff;
  color: #215751;
  border: 1px solid #b6e0ef;
}

/* Help mode UI */
.help-marker {
  display: none;
  margin-left: 8px;
  border: 1px solid #d4e7e4;
  background: #f5fbfa;
  color: #215751;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(33,87,81,0.15);
  vertical-align: baseline;
}
.help-marker::before { content: "?"; }
body.help-mode-active .help-marker { display: inline-block; }
.form-label .help-marker.help-marker-inline {
  margin-left: 6px;
  margin-right: 6px;
}
.help-toggle-active { background:#215751 !important; color:#fff !important; }
.help-popover { max-width: 320px; font-size: 0.95rem; }