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

:root {
  --bg-body: #f8fafc;
  --bg-sidebar: #0f172a;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --white: #ffffff;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  font-size: 14px;
}

body {
  display: flex;
  height: 100vh;
  background-color: var(--bg-body);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.profile-section {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.2s ease;
}

.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #3B82F6;
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.profile-email {
  font-size: 0.75rem;
  color: #BFDBFE;
  margin-bottom: 0.5rem;
}

.role-badge {
  font-size: 0.625rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #DBEAFE;
  transition: all 0.2s;
}

.nav-item:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item-content svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-item-content span {
  font-weight: 500;
  font-size: 0.875rem;
}

.badge {
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.sign-out-container {
  padding: 1rem;
}

.sign-out-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sign-out-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.header-card {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.header-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  background-color: var(--white);
  border: 1px solid #E5E7EB;
  color: #374151;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}

.select-wrapper select:focus {
  box-shadow: 0 0 0 2px #3B82F6;
}

.select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.select-icon svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #4338ca;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  position: relative;
}

.stat-card.revenue { border-top: 4px solid var(--success); }
.stat-card.due { border-top: 4px solid var(--warning); }

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.stat-icon.revenue { background-color: var(--success); color: var(--white); }
.stat-icon.jobs { background-color: var(--bg-body); color: var(--primary); }
.stat-icon.due { background-color: var(--warning); color: var(--white); }

.stat-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Chart Section */
.chart-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.chart-container {
  height: 300px;
  width: 100%;
  position: relative;
}

/* Bottom Grid */
.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.workflow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.workflow-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: var(--bg-body);
  color: var(--text-muted);
}

.workflow-tag:hover:not(.active) {
  background-color: #E5E7EB;
}

.workflow-tag.active {
  background-color: var(--primary);
  color: var(--white);
}

.workflow-tag .count {
  color: var(--text-dark);
}

.workflow-tag.active .count {
  color: var(--white);
}

.deadline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deadline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.deadline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.deadline-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.deadline-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Admin Panel Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}

.input-field, .select-field {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  outline: none;
  background-color: var(--white);
}

.input-field:focus, .select-field:focus {
  border-color: var(--primary);
}

.input-field[readonly] {
  background-color: #F1F5F9;
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #94A3B8;
  color: var(--white);
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-secondary:hover {
  background-color: #64748B;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.td-email {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.td-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.td-password {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-dark);
  letter-spacing: 2px;
}

.td-password svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: normal;
}

.status-icon {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.btn-remove {
  background-color: rgba(255, 91, 91, 0.1);
  color: var(--danger);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.btn-remove:hover {
  background-color: rgba(255, 91, 91, 0.2);
}

.btn-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-update {
  background-color: #E0E7FF;
  color: #4318FF;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-update:hover:not(:disabled) {
  background-color: #C7D2FE;
}

.btn-update:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-toggle-status {
  background-color: #FEF3C7;
  color: #D97706;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-toggle-status:hover:not(:disabled) {
  background-color: #FDE68A;
}

.btn-toggle-status.activate {
  background-color: #D1FAE5;
  color: #059669;
}

.btn-toggle-status.activate:hover:not(:disabled) {
  background-color: #A7F3D0;
}

.btn-toggle-status:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- LOGIN PAGE --- */
.login-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F4F7FE;
}

.login-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

.login-header h2 {
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.input-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  color: #A3AED0;
  width: 1.25rem;
  height: 1.25rem;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  background-color: #F8FAFC;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1);
}

.login-btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* --- KANBAN BOARD --- */
.kanban-board {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  flex: 1;
  align-items: flex-start;
}

.kanban-column {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kanban-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.kanban-count {
  background-color: #E2E8F0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kanban-empty {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.kanban-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.kanban-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

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

.k-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.k-card-header-right {
  display: flex;
  gap: 0.25rem;
}

.k-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.k-action-btn:hover {
  background: #F1F5F9;
  color: var(--primary);
}

.k-action-btn.edit-btn {
  background: #FFFBEB;
  color: #D97706;
}

.k-action-btn.edit-btn:hover {
  background: #FEF3C7;
}

.k-action-btn i {
  width: 14px;
  height: 14px;
}

.k-card-qty {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.k-card-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.k-card-body {
  background-color: #F8FAFC;
  border-radius: 0.5rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.k-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-folder-icon {
  color: #CBD5E1;
  width: 2rem;
  height: 2rem;
}

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

.k-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.k-avatar {
  width: 20px;
  height: 20px;
  background-color: #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.k-name {
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

.k-actions {
  display: flex;
  gap: 0.25rem;
}

.k-status-select {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  background-color: white;
  color: #475569;
  cursor: pointer;
  outline: none;
  max-width: 120px;
}

.k-status-select:focus {
  border-color: #3b82f6;
}

.k-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.k-btn:hover {
  background-color: #F1F5F9;
  color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    border-radius: 8px;
  }
  
  .hamburger-btn:hover {
    background: rgba(0,0,0,0.05);
  }
  
  .header-card, .reports-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .header-card > div:nth-child(2), .reports-header > div:nth-child(2) {
    flex: 1;
  }
  
  .header-actions {
    width: 100%;
    margin-top: 16px;
    justify-content: flex-start;
  }
  
  .search-container {
    width: 100% !important;
    margin-top: 16px;
  }
  
  .header-card > div:nth-child(3), .reports-header > div:nth-child(3) {
    text-align: left !important;
    margin-top: 16px;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  /* Kanban Board Responsiveness */
  .kanban-board {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .kanban-column {
    min-width: 100%;
    margin-bottom: 20px;
  }
  
  /* Calendar Responsiveness */
  .calendar-container {
    flex-direction: column !important;
    overflow-y: auto !important;
  }
  
  .calendar-container > .card:nth-child(1) {
    overflow-x: auto;
  }
  
  .calendar-grid {
    min-width: 600px;
  }
  
  .calendar-day-header {
    min-width: 600px;
  }
  
  .calendar-container > .card:nth-child(2) {
    width: 100% !important;
    min-height: 300px;
  }
  
  /* Dashboard Grid Responsiveness */
  .bottom-grid, .bottom-tables {
    grid-template-columns: 1fr !important;
  }
  
  .stats-grid, .summary-cards {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .stats-grid, .summary-cards {
    grid-template-columns: 1fr !important;
  }
  
  .logo-upload-container {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .header-actions {
    flex-direction: column;
  }
  
  .header-actions button {
    width: 100%;
  }
}

/* --- LAYOUT STRUCTURES --- */

/* 1. Original Layout (Default) - No extra CSS needed as it's the base */

/* 2. Floating Island Layout */
body.layout-floating {
  background-color: #e2e8f0;
}

body.layout-floating #app-container {
  padding: 1rem;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
}

body.layout-floating .sidebar {
  border-radius: 1rem;
  height: calc(100vh - 2rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.layout-floating .main-content {
  background-color: var(--bg-body);
  border-radius: 1rem;
  height: calc(100vh - 2rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 3. Slim Rail Sidebar Layout */
body.layout-slim-rail .sidebar {
  width: 80px;
  transition: width 0.3s ease, margin-right 0.3s ease;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

body.layout-slim-rail .sidebar:hover {
  width: 260px;
  margin-right: -180px;
}

body.layout-slim-rail .sidebar .profile-section {
  padding: 1.5rem 0.5rem;
  transition: padding 0.2s ease;
}

body.layout-slim-rail .sidebar:hover .profile-section {
  padding: 2rem;
}

body.layout-slim-rail .sidebar .avatar {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
  transition: width 0.2s ease, height 0.2s ease, font-size 0.2s ease;
}

body.layout-slim-rail .sidebar:hover .avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

body.layout-slim-rail .sidebar .profile-name,
body.layout-slim-rail .sidebar .profile-email,
body.layout-slim-rail .sidebar .role-badge {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

body.layout-slim-rail .sidebar:hover .profile-name {
  opacity: 1;
  height: auto;
  margin-bottom: 0.25rem;
}

body.layout-slim-rail .sidebar:hover .profile-email {
  opacity: 1;
  height: auto;
  margin-bottom: 0.5rem;
}

body.layout-slim-rail .sidebar:hover .role-badge {
  opacity: 1;
  height: auto;
}

body.layout-slim-rail .sidebar .nav-item {
  justify-content: center;
  padding: 0.75rem;
}

body.layout-slim-rail .sidebar:hover .nav-item {
  justify-content: flex-start;
  padding: 0.75rem 1rem;
}

body.layout-slim-rail .sidebar .nav-item-content {
  gap: 0;
  transition: gap 0.2s ease;
}

body.layout-slim-rail .sidebar:hover .nav-item-content {
  gap: 0.75rem;
}

body.layout-slim-rail .sidebar .nav-item-content span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, width 0.2s ease;
}

body.layout-slim-rail .sidebar:hover .nav-item-content span {
  opacity: 1;
  width: auto;
}

body.layout-slim-rail .sidebar .badge {
  display: none !important;
}

body.layout-slim-rail .sidebar:hover .badge {
  display: inline-flex !important;
}

body.layout-slim-rail .sidebar .sign-out-btn {
  font-size: 0;
  padding: 0.625rem;
}

body.layout-slim-rail .sidebar .sign-out-btn i {
  margin-right: 0 !important;
}

body.layout-slim-rail .sidebar:hover .sign-out-btn {
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
}

body.layout-slim-rail .sidebar:hover .sign-out-btn i {
  margin-right: 0.5rem !important;
}

@media (max-width: 1024px) {
  /* Reset floating island on mobile */
  body.layout-floating #app-container {
    padding: 0;
    gap: 0;
  }
  body.layout-floating .sidebar,
  body.layout-floating .main-content {
    border-radius: 0;
    height: 100vh;
  }
  /* Reset slim rail on mobile */
  body.layout-slim-rail .sidebar {
    width: 260px;
    margin-right: 0 !important;
  }
  body.layout-slim-rail .sidebar .profile-name,
  body.layout-slim-rail .sidebar .profile-email,
  body.layout-slim-rail .sidebar .role-badge {
    opacity: 1;
    height: auto;
    margin-bottom: 0.25rem;
  }
  body.layout-slim-rail .sidebar .profile-email { margin-bottom: 0.5rem; }
  body.layout-slim-rail .sidebar .nav-item-content span {
    opacity: 1;
    width: auto;
  }
  body.layout-slim-rail .sidebar .nav-item-content { gap: 0.75rem; }
  body.layout-slim-rail .sidebar .sign-out-btn {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }
  body.layout-slim-rail .sidebar .sign-out-btn i { margin-right: 0.5rem !important; }
  body.layout-slim-rail .sidebar .avatar {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
  body.layout-slim-rail .sidebar .profile-section { padding: 2rem; }
}

/* Utilities */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
