:root {
  --scout-red: #CC0000;
  --scout-blue: #3366cc;
  --scout-yellow: #ffcc00;
  --scout-green: #339933;
  --scout-nautico: #339933;
  --scout-gray: #777777;
  --scout-bg-card: #ffffff;
  --scout-border: #eaeaea;
  --scout-shadow: 0 4px 6px rgba(0,0,0,0.05);
  --scout-link: #4F79D2;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background-color: #f8f9fa;
}

.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(70px + env(safe-area-inset-top, 20px));
  padding: env(safe-area-inset-top, 20px) 16px 0 16px;
  background: #f8f9fa;
  flex-shrink: 0;
}

.main-container {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  padding-bottom: 16px;
  padding-right: 16px;
  position: relative;
}

@media (max-width: 991.98px) {
  .main-container {
    padding-right: 0;
    padding-bottom: 0;
  }
}

/* Sidebar Styles */
.sidebar {
  width: 256px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    top: calc(70px + env(safe-area-inset-top, 20px));
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: calc(70px + env(safe-area-inset-top, 20px));
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1040;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-toggle {
  display: none;
  font-size: 1.25rem;
  padding: 0.5rem;
  color: #5f6368;
  border: none;
  background: transparent;
}

@media (max-width: 991.98px) {
  .sidebar-toggle {
    display: block;
  }
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 48px;
  color: #3c4043;
  text-decoration: none;
  border-radius: 0 24px 24px 0;
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
  transition: background-color 0.2s;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 18px;
  color: #5f6368;
}

.sidebar-link:hover {
  background-color: rgba(60,64,67,.08);
  color: #3c4043;
}

.sidebar-link.active {
  background-color: #e8f0fe;
  color: #1967d2;
}

.sidebar-link.active i {
  color: #1967d2;
}

/* Content Area */
.content-area {
  flex-grow: 1;
  background: white;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  padding: 24px;
  margin-left: 0;
  width: 100%;
}

@media (max-width: 991.98px) {
  .content-area {
    border-radius: 0;
    box-shadow: none;
    padding: 16px;
  }
}

.content-area::-webkit-scrollbar {
  width: 8px;
}

.content-area::-webkit-scrollbar-track {
  background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Brand Section */
.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: #5f6368;
  text-decoration: none;
}

.brand-section:hover {
  color: #5f6368;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

/* User Profile Section */
.user-profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #1967d2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar-custom-brand {
  color: #1a365d !important;
  font-weight: 700 !important;
}

/* Scout Design System */
.scout-card {
  background-color: var(--scout-bg-card);
  border: 1px solid var(--scout-border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--scout-shadow);
}

.scout-title-main {
  color: var(--scout-red);
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

.scout-subtitle {
  color: var(--scout-gray);
  font-family: Arial, sans-serif;
}

.scout-leader-link {
  text-decoration: none;
  color: var(--scout-link);
  font-weight: bold;
  font-family: monospace;
  font-size: 15px;
  text-transform: uppercase;
}

.scout-leader-link:hover {
  text-decoration: underline;
}

.scout-stats-container {
  max-width: 400px;
  margin: 0 auto;
  color: #555;
}

.scout-stats-row {
  display: flex;
  border: 1px solid #f8f9fa;
  color: white;
  margin-bottom: 2px;
}

.scout-stats-row.border-top-0 {
  border-top: none;
}

.scout-stats-label {
  width: 154px;
  text-align: right;
  padding: 0 8px;
  border-right: 1px solid #f8f9fa;
}

.scout-stats-value {
  width: 43px;
  text-align: right;
  padding: 0 8px;
  font-weight: bold;
  border-right: 1px solid #f8f9fa;
}

.scout-stats-label-alt {
  width: 154px;
  text-align: right;
  padding: 0 8px;
  border-right: 1px solid #f8f9fa;
}

.scout-stats-value-alt {
  width: 49px;
  text-align: right;
  padding: 0 8px;
  font-weight: bold;
}

/* Branche Colors */
.scout-bg-lupetti { background-color: var(--scout-yellow) !important; color: #555 !important; }
.scout-bg-esploratori { background-color: var(--scout-green); }
.scout-bg-rover { background-color: var(--scout-red); }
.scout-bg-coccinelle { background-color: var(--scout-yellow) !important; color: #555 !important; }
.scout-bg-guide { background-color: var(--scout-green); }
.scout-bg-scolte { background-color: var(--scout-red); }
.scout-bg-capi { background-color: var(--scout-blue); }

.scout-sidebar-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
  padding: 1.5rem !important;
  text-align: center;
}

.scout-sidebar-title {
  font-size: 13px;
  color: #2d3748;
  font-weight: bold;
  text-transform: uppercase;
}

.scout-region-item {
  background-color: #ebf8ff;
  color: #2b6cb0 !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: Arial, sans-serif;
  display: block;
  text-align: left;
}

.scout-region-item:hover {
  background-color: #3182ce;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
}

.scout-unita-item {
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  border-left: 3px solid rgba(0,0,0,0.1);
  padding: 4px 8px;
  margin-bottom: 4px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.scout-unita-item:hover {
  transform: translateY(-2px);
}

/* Search Page Styles */
.search-container {
    padding: 2rem 1rem;
}

.search-box, .results-box, .regions-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.regions-box {
    padding: 1.5rem;
}

.regions-title {
    color: #c53030;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.regions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.region-item {
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.region-item:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
}

.search-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.btn-search {
    background: #3182ce;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-search:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2);
}

.custom-table th {
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.7px;
    background-color: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.custom-table tbody tr {
    transition: background-color 0.2s ease;
}

.custom-table tbody td {
    font-size: 14px;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background-color: #edf2f7;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

.bg-branca-giallo {
    background-color: #ecc94b; /* Gold/Yellow */
}

.bg-branca-verde {
    background-color: #38a169; /* Green */
}

.bg-branca-rosso {
    background-color: #e53e3e; /* Red */
}

.bg-branca-blu {
    background-color: #3182ce; /* Blue */
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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

/* Mobile Results List */
.mobile-results-list {
    margin-top: 1rem;
}

.socio-mobile-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
    transition: transform 0.2s, background-color 0.2s;
}

.socio-mobile-card:active {
    transform: scale(0.98);
    background-color: #f7fafc;
}

.socio-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.05rem;
    line-height: 1.2;
}

/* Utility Classes for View Cleanup */
.scout-hierarchy-container {
    font-size: 14px;
}

.scout-hierarchy-roles {
    line-height: 22px;
}

.scout-sidebar-separator {
    width: 100%;
    border-top: 2px solid #fff;
    margin-bottom: 2px;
    margin-top: 4px;
}

.scout-sidebar-unit-title {
    margin-bottom: 2px;
    font-size: 10px;
    opacity: 0.9;
    color: #777;
}

.scout-summary-label {
    width: 155px;
    font-size: 14px;
}

.scout-summary-value {
    width: 46px;
    font-size: 15px;
}

/* Unita Detail Section Styles */
.scout-unita-meta {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .scout-unita-meta {
        font-size: 11px;
    }
    
    .scout-hierarchy-roles {
        line-height: 18px;
    }
}

.scout-dinamica-title {
    color: #777;
    font-size: 11px;
    margin-bottom: 0.5rem;
}

.scout-dinamica-container {
    max-width: 400px;
    width: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .scout-dinamica-container {
        max-width: 100%;
    }
}

.scout-dinamica-table {
    display: flex;
    width: 100%;
}

.scout-dinamica-cell {
    flex: 1;
    text-align: center;
    line-height: 16px;
    border: 1px solid #ddd;
    font-size: 11px;
    background-color: #fff;
}

.scout-dinamica-cell:not(:first-child) {
    border-left: none;
}

.scout-dinamica-row-values .scout-dinamica-cell {
    border-top: none;
    color: white;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Roster Table Styles */
.scout-roster-container {
    color: #777;
    font-size: 11px;
}

.scout-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    border: 1px solid #ddd;
}

.scout-roster-header td {
    background-color: #f8f9fa;
    padding: 8px;
    border: 1px solid #ddd;
    font-weight: bold;
}

.scout-roster-cell {
    padding: 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.scout-info-value {
    color: #4F79D2;
}

.scout-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 600;
    font-size: 13px;
    gap: 8px;
    white-space: nowrap;
}

.scout-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.scout-action-btn i {
    font-size: 16px;
}

.scout-action-btn-edit { background-color: #3182ce; }
.scout-action-btn-edit:hover { background-color: #2b6cb0; }

.scout-action-btn-delete { background-color: #e53e3e; }
.scout-action-btn-delete:hover { background-color: #c53030; }

.scout-action-btn-upload { background-color: #38a169; }
.scout-action-btn-upload:hover { background-color: #2f855a; }

.scout-action-btn-manage { background-color: #f6ad55; }
.scout-action-btn-manage:hover { background-color: #ed8936; }


.scout-link-btn {
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
}

small, .small {
    font-size: 13px;
}

.custom-table thead th {
    background-color: #edf2f7;
    border-bottom: 2px solid #cbd5e0;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    color: #1a365d;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #4a5568;
    font-size: 1rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.error-text {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.error-summary {
    color: #e53e3e;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    background: rgba(254, 178, 178, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(254, 178, 178, 0.5);
}

/* --- DRIVE UI STYLE (Google Drive Like) --- */

.scout-drive-container {
    min-height: 400px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 1rem;
    background-color: transparent;
}

.scout-drive-container[data-is-admin="true"] {
    border: 2px dashed #e0e0e0;
    padding: 1.5rem;
    background-color: #fafafa;
}

.scout-drive-container.drag-over {
    border-color: var(--scout-blue);
    background-color: rgba(0, 86, 179, 0.05);
}

.scout-drive-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 1.5rem;
    font-size: 0.75rem;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

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

.scout-drive-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scout-drive-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--scout-blue);
}

.scout-drive-item.selected {
    background-color: #e8f0fe;
    border-color: #4285f4;
}

.scout-drive-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.scout-drive-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3c4043;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Context Menu */
.scout-context-menu {
    position: fixed;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
}

.scout-context-item {
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #3c4043;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
}

.scout-context-item:hover {
    background-color: #f1f3f4;
}

.scout-context-item i {
    width: 16px;
    text-align: center;
    color: #5f6368;
}

@keyframes driveBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scout-empty-state {
    text-align: center;
    padding: 3rem;
    color: #5f6368;
}

.scout-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* --- DRAG & DROP FOLDER FEEDBACK --- */
.scout-drive-item.drag-over {
    background-color: #e8f0fe !important;
    border-color: var(--scout-blue) !important;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.3) !important;
}

/* --- VIEW MODES --- */
.scout-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.scout-grid.list-view .scout-drive-item {
    flex-direction: row;
    height: auto;
    min-height: 52px;
    padding: 0.5rem 1.25rem;
    gap: 1.25rem;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    border-radius: 0;
    width: 100%;
    transform: none !important;
    box-shadow: none !important;
    background: transparent;
}

.scout-grid.list-view .scout-drive-item:hover {
    background-color: #f1f3f4;
}

.scout-grid.list-view .scout-drive-item.selected {
    background-color: #e8f0fe;
}

.scout-grid.list-view .scout-drive-item:last-child {
    border-bottom: none;
}

.scout-grid.list-view .scout-drive-icon {
    font-size: 1.5rem;
    width: 30px;
    margin-bottom: 0;
}

.scout-grid.list-view .scout-drive-name {
    flex: 1;
    font-size: 0.95rem;
}

/* Toolbar Buttons */
.scout-drive-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.btn-layout-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.btn-layout-toggle:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--scout-blue);
}

.btn-layout-toggle.active {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--scout-blue);
}

/* Enhanced Scout Table Custom Styles */
.scout-table-custom thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #5f6368;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scout-table-custom td {
    border-color: #f1f3f4;
}

.scout-row-lupetti { background-color: rgba(255, 204, 0, 0.1); color: #202124; }
.scout-row-esploratori { background-color: rgba(51, 153, 51, 0.1); color: #202124; }
.scout-row-rover { background-color: rgba(204, 0, 0, 0.05); color: #202124; }
.scout-row-coccinelle { background-color: rgba(255, 204, 0, 0.1); color: #202124; }
.scout-row-guide { background-color: rgba(51, 153, 51, 0.1); color: #202124; }
.scout-row-scolte { background-color: rgba(204, 0, 0, 0.05); color: #202124; }
.scout-row-capi { background-color: rgba(51, 102, 204, 0.05); color: #202124; }

.scout-row-lupetti td:first-child { border-left: 5px solid var(--scout-yellow); }
.scout-row-esploratori td:first-child { border-left: 5px solid var(--scout-green); }
.scout-row-rover td:first-child { border-left: 5px solid var(--scout-red); }
.scout-row-coccinelle td:first-child { border-left: 5px solid var(--scout-yellow); }
.scout-row-guide td:first-child { border-left: 5px solid var(--scout-green); }
.scout-row-scolte td:first-child { border-left: 5px solid var(--scout-red); }
.scout-row-capi td:first-child { border-left: 5px solid var(--scout-blue); }
/* Google-style Tabs and Data Display */
.google-tab {
    border-radius: 0 !important;
    border: none !important;
    color: #5f6368 !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    position: relative;
    background: none;
    transition: background-color 0.2s;
}

.google-tab:hover {
    background-color: rgba(60,64,67,.04) !important;
    color: #202124 !important;
}

.google-tab.active {
    color: #1967d2 !important;
    background: none !important;
}

.google-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #1967d2;
    border-radius: 3px 3px 0 0;
}

.google-data-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.google-data-label {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.google-data-value {
    font-size: 15px;
    color: #202124;
    font-weight: 500;
}

.fs-7 { font-size: 0.75rem; }
.ls-wide { letter-spacing: 0.8px; }

/* Custom scrollbar for Google style */
.tab-content::-webkit-scrollbar {
    width: 8px;
}
.tab-content::-webkit-scrollbar-track {
    background: transparent;
}
.tab-content::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}
.tab-content::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

.italic { font-style: italic; }
.last-child-mb-0 > *:last-child { margin-bottom: 0 !important; }

/* Soft background utility classes */
.bg-info-soft { background-color: #e8f0fe; }
.text-info-dark { color: #1967d2; }
.bg-purple-soft { background-color: #f3e8fd; }
.text-purple-dark { color: #9334e6; }
.bg-warning-soft { background-color: #fef7e0; }
.text-warning-dark { color: #b05a00; }
.bg-success-soft { background-color: #e6f4ea; }
.bg-danger-soft { background-color: #fce8e6; }
