/* Apple System Font and Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f7;
  color: #1d1d1f;
  padding-bottom: env(safe-area-inset-bottom);
}

.ios-card {
  border-radius: 16px;
  background-color: white;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
}

.ios-input {
  border-radius: 12px;
  background-color: #f5f5f7;
  padding: 12px 16px;
  font-size: 17px;
  border: 1px solid #d2d2d7;
  appearance: none;
  font-family: inherit;
}

.ios-input:focus {
  outline: none;
  border-color: #000000;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.ios-button {
  border-radius: 12px;
  font-weight: 600;
  padding: 14px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.ios-button:active {
  transform: scale(0.98);
}

.ios-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Completion Checkbox Styles */
.completion-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #d2d2d7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.completion-checkbox.filled {
  background-color: #30d158;
  border-color: #30d158;
}

.completion-check {
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.completion-checkbox.filled .completion-check {
  opacity: 1;
}

.completion-checkbox:hover {
  border-color: #30d158;
  transform: scale(1.05);
}

/* Glass Logout Button */
.glass-logout-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #1d1d1f;
  font-weight: 600;
  padding: 16px 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.glass-logout-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.glass-logout-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-logout-button:hover::before {
  left: 100%;
}

.glass-logout-button:active {
  transform: translateY(0) scale(0.98);
}

/* Bottom tab bar */
.tab-bar {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: #86868b;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tab-bar-item.active {
  color: #1d1d1f;
}

.tab-bar-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Bottom Sheet Styles */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 5px;
  background-color: #d2d2d7;
  border-radius: 3px;
  margin: 12px auto 20px;
}

/* Maps app selection styles */
.maps-app-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background-color: #f5f5f7;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.maps-app-option:hover {
  background-color: #e8e8ed;
  transform: translateY(-1px);
}

.maps-app-option.selected {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: #1d1d1f;
  transform: translateY(-1px);
}

/* Status badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-open {
  background-color: rgba(48, 209, 88, 0.1);
  color: #30d158;
}

.status-closed {
  background-color: rgba(29, 29, 31, 0.1);
  color: #1d1d1f;
}

.status-pending {
  background-color: rgba(255, 159, 10, 0.1);
  color: #ff9f0a;
}

.status-connected {
  background-color: rgba(134, 134, 139, 0.15);
  color: #1d1d1f;
  border: 1px solid rgba(134, 134, 139, 0.3);
  font-weight: 800;
  text-shadow: 0 0 1px rgba(29, 29, 31, 0.3);
}

.status-cancelled {
  background-color: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

/* Job card border */
.job-card {
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-card.open {
  border-left-color: #30d158;
}

.job-card.closed {
  border-left-color: #1d1d1f;
}

.job-card.pending {
  border-left-color: #ff9f0a;
}

.job-card.connected {
  border-left-color: #86868b;
  background-color: rgba(134, 134, 139, 0.02);
}

.job-card.cancelled {
  border-left-color: #ff3b30;
}

.job-card.completed {
  border-left-color: #30d158;
  background-color: rgba(48, 209, 88, 0.02);
}

/* Job address highlighting - Enhanced */
.job-address {
  background: linear-gradient(135deg, rgba(29, 29, 31, 0.05), rgba(29, 29, 31, 0.02));
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  font-weight: 500;
  color: #1d1d1f;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.job-address:hover {
  background: linear-gradient(135deg, rgba(29, 29, 31, 0.08), rgba(29, 29, 31, 0.04));
  transform: translateY(-1px);
}

.job-address i {
  color: #86868b;
  margin-right: 8px;
  font-size: 12px;
}

/* Wallet card gradient */
.wallet-card {
  background: linear-gradient(135deg, #1d1d1f, #424245);
}

/* Transaction Items - Monochrome Design */
.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 0.5px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.transaction-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background-color: #f5f5f7;
  border: 1px solid #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.transaction-icon i {
  font-size: 16px;
  color: #1d1d1f;
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.transaction-date {
  font-size: 13px;
  color: #86868b;
}

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: right;
}

.transaction-type {
  font-size: 11px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Classic Profile Container */
.classic-profile-container {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 1px solid #e8e8ed;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.classic-profile-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.classic-avatar {
  width: 88px;
  height: 88px;
  border-radius: 44px;
  background: linear-gradient(135deg, #1d1d1f, #424245);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.classic-profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.classic-profile-phone {
  font-size: 16px;
  color: #86868b;
  font-weight: 500;
}

/* Hide scrollbar but allow scrolling */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Page management */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Clean header - minimal styling */
.clean-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.welcome-text {
  font-size: 15px;
  color: #86868b;
  text-align: center;
}

/* Typography improvements */
h1,
h2,
h3 {
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.022em;
}

.text-gray-500 {
  color: #86868b !important;
}

.text-gray-600 {
  color: #6e6e73 !important;
}

.text-dark {
  color: #1d1d1f !important;
}

.bg-light {
  background-color: #f5f5f7 !important;
}

.bg-primary {
  background-color: #1d1d1f !important;
}

.text-primary {
  color: #1d1d1f !important;
}

.bg-success {
  background-color: #30d158 !important;
}

.text-success {
  color: #30d158 !important;
}

.bg-danger {
  background-color: #ff3b30 !important;
}

.text-danger {
  color: #ff3b30 !important;
}

/* Button improvements */
.bg-primary.ios-button {
  background-color: #1d1d1f;
  color: white;
}

.bg-primary.ios-button:hover {
  background-color: #424245;
}

.bg-success.ios-button {
  background-color: #30d158;
  color: white;
}

.bg-success.ios-button:hover {
  background-color: #248a3d;
}

.bg-danger.ios-button {
  background-color: #ff3b30;
  color: white;
}

.bg-danger.ios-button:hover {
  background-color: #d70015;
}

/* Stats container improvements */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 20px 16px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.hamburger-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.hamburger-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.hamburger-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 0.5px solid #f0f0f0;
}

.hamburger-menu-item:last-child {
  border-bottom: none;
}

.hamburger-menu-item:hover {
  background-color: #f5f5f7;
}

.hamburger-menu-item i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: #1d1d1f;
}

.hamburger-menu-item span {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
}

/* Statement Table Styles */
.statement-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.statement-table th,
.statement-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.statement-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 14px;
}

.statement-table td {
  font-size: 13px;
  color: #1d1d1f;
}

.statement-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.statement-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.statement-filters input {
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
}

.download-btn {
  background-color: #1d1d1f;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background-color: #424245;
}

.statement-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8ed;
  margin-bottom: 20px;
}

.statement-tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: #86868b;
  transition: all 0.2s ease;
}

.statement-tab.active {
  color: #1d1d1f;
  border-bottom-color: #1d1d1f;
}

.statement-content {
  display: none;
}

.statement-content.active {
  display: block;
}

/* Additional styles for My Profession feature */
.profession-group {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  overflow: hidden;
}

.profession-header {
  background: linear-gradient(135deg, #1d1d1f, #424245);
  color: white;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.profession-header i {
  margin-right: 12px;
  font-size: 18px;
}

.service-item {
  padding: 14px 20px;
  border-bottom: 0.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background-color: #f5f5f7;
  border: 1px solid #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 14px;
  color: #1d1d1f;
}

.service-details {
  flex: 1;
}

.service-name {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.service-description {
  font-size: 12px;
  color: #86868b;
}

.service-badge {
  background-color: rgba(48, 209, 88, 0.1);
  color: #30d158;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.empty-profession {
  text-align: center;
  padding: 40px 20px;
  color: #86868b;
}

.empty-profession i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.profession-stats {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #86868b;
}

.profession-count {
  font-weight: 600;
  color: #1d1d1f;
}

.status-cancelled {
  background-color: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

/* Added green styling for completed status */
.status-completed {
  background-color: rgba(48, 209, 88, 0.15);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.3);
  font-weight: 800;
  text-shadow: 0 0 1px rgba(48, 209, 88, 0.3);
}

/* Job tab styling - Enhanced for better visibility */
.job-tab {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #86868b;
  background: transparent;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.job-tab:hover {
  color: #1d1d1f;
  background-color: rgba(29, 29, 31, 0.05);
}

/* Fixed active tab styling with original design approach */
.job-tab.active-tab {
  color: #1d1d1f;
  font-weight: 600;
  border-bottom-color: #1d1d1f;
  background-color: rgba(29, 29, 31, 0.08);
}

/* Ensure job sections display correctly */
.job-list {
  display: none;
}

.job-list.active {
  display: block;
}

/* Enhanced job tabs styling to ensure proper inline layout */
.job-tabs {
  display: flex;
  background-color: #f5f5f7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

/* Alternative styling for button-based tabs */
.tab-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #86868b;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-button.active {
  background-color: white;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button:hover:not(.active) {
  color: #1d1d1f;
  background-color: rgba(255, 255, 255, 0.5);
}
