/* Small Mobile Devices (up to 576px) */
@media (max-width: 576px) {
  /* Font sizes */
  .font60 {
    font-size: 32px !important;
  }
  
  .font35 {
    font-size: 24px !important;
  }
  
  .font15 {
    font-size: 14px !important;
  }
  /* Button sizes */
  .btn-size-md {
    padding: 8px 20px;
    font-size: 14px;
  }
  
  .btn2-size-md {
    padding: 8px 20px;
    font-size: 14px;
  }
  
  /* Home layout */
  .home-bg {
    background-position: center;
  }
  
  .col-8 {
    width: 100% !important;
    padding: 2rem 1.5rem !important;
  }
  
  .col-4 {
    width: 100% !important;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  /* Adjust circle button */
  .circle-btn {
    width: 60px;
    height: 60px;
    font-size: 14px;
    bottom: 4px;
  }
  
  /* Login and Register panels */
  .login-panel, .register-panel {
    width: 85%;
    right: -85%;
  }
  
  .login-title h2, .register-title h2 {
    font-size: 20px;
  }
  
  .login-form-control, .register-form-control {
    padding: 0.6rem 0.8rem;
  }

  /* DataTable Mobile Styles */
  .data-table-container .table thead {
    display: none;
  }

  .data-table-container .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .data-table-container .table tbody td {
    display: block;
    text-align: left;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
  }

  .data-table-container .table tbody td:before {
    content: attr(data-label);
    position: relative;
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
  }

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

  .button-container {
    flex-direction: column;
    width: 100%;
  }

  .button-container .btn {
    width: 100%;
    max-width: none;
    margin: 0.25rem 0;
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .data-table-container .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .data-table-container .pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
  }

  /* Existing mobile styles */
  .notifications-page .table td {
    padding: 0.6rem 0.4rem;
    font-size: 13px;
  }

  .notifications-page .table td:nth-child(2) {
    max-width: 120px;
  }

  .notifications-nav .btn {
    padding: 0.4rem;
    font-size: 13px;
  }

  .notifications-page .pagination .page-link {
    padding: 0.3rem 0.5rem;
    font-size: 13px;
  }

  .payments-page .table td,
  .payments-page .table th {
    padding: 0.6rem 0.4rem;
    font-size: 13px;
  }

  .payments-page .table td:nth-child(4),
  .payments-page .table th:nth-child(4) {
    display: none;
  }

  .payments-nav .btn {
    padding: 0.4rem;
    font-size: 13px;
  }

  .payments-page .badge {
    padding: 0.3rem 0.6rem !important;
    font-size: 11px;
  }

  .payments-page .pagination .page-link {
    padding: 0.3rem 0.5rem;
    font-size: 13px;
  }

  .payments-page .btn-link {
    font-size: 13px;
  }

  .offers-nav .nav-link {
    padding: 0.25rem 0.3rem;
    font-size: 10px;
  }

  .offers-table-row {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    min-width: 550px;
  }

  .offers-table-row .col {
    padding: 0.25rem 0.3rem;
  }

  .offers-table-row strong {
    font-size: 9px;
  }

  .offers-table-row .d-md-none {
    font-size: 10px;
  }

  .offer-image {
    width: 28px;
    height: 28px;
  }

  .bulk-actions span {
    font-size: 10px;
  }

  .bulk-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 10px;
  }

  .offers-table-row .btn {
    padding: 0.2rem 0.4rem;
    font-size: 9px;
  }

  .offers-page .pagination .page-link {
    padding: 0.2rem 0.3rem;
    font-size: 10px;
  }

  .offers-page .form-check-input {
    width: 12px;
    height: 12px;
  }

  /* Sidebar and Hamburger Menu Styles */
  .left-sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background: white;
  }

  body.show-sidebar .left-sidebar {
    transform: translateX(250px);
  }

  .app-header .btn.ti-menu-2 {
    display: block !important;
    color: #000 !important;
    font-size: 24px;
    padding: 0;
    margin-right: 15px;
  }

  .body-wrapper {
    margin-left: 0 !important;
  }

  /* Add overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
  }

  body.show-sidebar .sidebar-overlay {
    display: block;
  }
  .body-wrapper .body-wrapper-inner {
    min-height: calc(100vh - 110px);
    padding-top: 0px !important;
  }

  .onboarding-layout{
    padding-left: 0px !important;
  }
}

/* Large Mobile Devices (577px - 767px) */
@media (min-width: 577px) and (max-width: 767px) {
  /* Font sizes */
  .font60 {
    font-size: 40px !important;
  }
  
  .font35 {
    font-size: 28px !important;
  }
  
  .font15 {
    font-size: 14px !important;
  }
  
  /* Home layout */
  .home-bg {
    background-position: center;
  }
  
  .col-8 {
    width: 100% !important;
    padding: 3rem 2rem !important;
  }
  
  .col-4 {
    width: 100% !important;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  /* Login and Register panels */
  .login-panel, .register-panel {
    width: 85%;
    right: -85%;
  }

  /* DataTable Large Mobile Styles */
  .data-table-container .table thead {
    display: none;
  }

  .data-table-container .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .data-table-container .table tbody td {
    display: block;
    text-align: left;
    padding: 0.5rem 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
  }

  .data-table-container .table tbody td:before {
    content: attr(data-label);
    position: relative;
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
  }

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

  .button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    width: 100%;
  }

  .button-container .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .data-table-container .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .data-table-container .pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
  }

  /* Sidebar and Hamburger Menu Styles */
  .left-sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background: white;
  }

  body.show-sidebar .left-sidebar {
    transform: translateX(250px);
  }

  .app-header .btn.ti-menu-2 {
    display: block !important;
    color: #000 !important;
    font-size: 24px;
    padding: 0;
    margin-right: 15px;
  }

  .body-wrapper {
    margin-left: 0 !important;
  }

  /* Add overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
  }

  body.show-sidebar .sidebar-overlay {
    display: block;
  }
  .body-wrapper .body-wrapper-inner {
    min-height: calc(100vh - 110px);
    padding-top: 0px !important;
  }
}

/* Common Mobile Styles */
@media (max-width: 767px) {
  /* Logo sizing */
  .home-container img {
    max-width: 150px;
  }
  
  /* Form elements */
  .login-form-group, .register-form-group {
    margin-bottom: 1rem;
  }
  
  /* Welcome screen adjustments */
  .welcome-text {
    font-size: 40px;
  }
  .home-text{
    top:20px;
  }

  /* DataTable Common Mobile Styles */
  .data-table-container {
    padding: 0.5rem;
  }

  .data-table-container .table {
    border-spacing: 0 8px;
  }

  .data-table-container .table-responsive {
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  .data-table-container .status-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .data-table-container .sortable-header {
    font-size: 0.875rem;
  }

  .data-table-container .sortable-header svg {
    width: 14px;
    height: 14px;
  }

  /* Notifications page mobile styles */
  .mobile-notifications {
    padding: 0.5rem;
  }

  .mobile-notification-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .notification-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f8f9fa;
    gap: 0.5rem;
  }

  .property-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
  }

  .property-name {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
  }

  .delete-btn {
    padding: 0.25rem;
    color: #6c757d;
    flex-shrink: 0;
    margin-left: auto;
  }

  .delete-btn:hover {
    color: #dc3545;
  }

  .expand-icon {
    color: #6c757d;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .notification-details {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: white;
  }

  .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .detail-row:last-child {
    margin-bottom: 0;
  }

  .detail-label {
    color: #6c757d;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .detail-value {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    text-align: right;
    min-width: 0;
  }

  .notifications-nav {
    width: 100% !important;
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .notifications-nav .nav-item {
    flex: 1;
    text-align: center;
  }

  .notifications-nav .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 14px;
  }

  .notifications-page .table {
    border-spacing: 0 8px;
  }

  .notifications-page .table td {
    padding: 0.8rem 0.5rem;
    font-size: 14px;
  }

  .notifications-page .table td:nth-child(2) {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .notifications-page .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .notifications-page .pagination .page-item {
    margin: 0;
  }

  .notifications-page .pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 14px;
  }

  .sortable-header {
    font-size: 14px;
  }

  .sortable-header svg {
    width: 14px;
    height: 14px;
  }

  /* Payments page mobile styles */
  .payments-page {
    padding: 10px;
  }

  .payments-nav {
    width: 100% !important;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .payments-nav .nav-item {
    flex: 1;
    text-align: center;
  }

  .payments-nav .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 14px;
  }

  .payments-page .table {
    border-spacing: 0 8px;
  }

  .payments-page .table td,
  .payments-page .table th {
    padding: 0.8rem 0.5rem;
    font-size: 14px;
    white-space: nowrap;
  }

  .payments-page .table td:nth-child(1),
  .payments-page .table th:nth-child(1) {
    min-width: 120px;
  }

  .payments-page .table td:nth-child(2),
  .payments-page .table th:nth-child(2) {
    min-width: 100px;
  }

  .payments-page .table td:nth-child(5),
  .payments-page .table th:nth-child(5) {
    display: none;
  }

  .payments-page .badge {
    padding: 0.4rem 0.8rem !important;
    font-size: 12px;
  }

  .payments-page .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .payments-page .pagination .page-item {
    margin: 0;
  }

  .payments-page .pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 14px;
  }

  .payments-page .btn-link {
    padding: 0.2rem;
    font-size: 14px;
  }

  .payments-page .btn-link svg {
    width: 16px;
    height: 16px;
  }

  /* E-sign page mobile styles */
  .offers-page {
    padding: 8px;
    overflow-x: hidden;
  }

  .offers-nav {
    width: 100% !important;
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .offers-nav .nav-item {
    flex: 1;
    text-align: center;
  }

  .offers-nav .nav-link {
    padding: 0.3rem 0.4rem;
    font-size: 11px;
  }

  .offers-table-header {
    display: none !important;
  }

  .offers-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px;
  }

  .offers-table-container::-webkit-scrollbar {
    height: 4px;
  }

  .offers-table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }

  .offers-table-row {
    padding: 0.6rem 0;
    margin-bottom: 0.6rem;
    border-radius: 6px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-width: 600px;
  }

  .offers-table-row .col {
    padding: 0.3rem 0.4rem;
  }

  .offers-table-row strong {
    font-size: 10px;
    color: #666;
  }

  .offers-table-row .d-md-none {
    font-size: 11px;
  }

  .offer-image {
    width: 32px;
    height: 32px;
  }

  .bulk-actions {
    margin-bottom: 0.8rem;
  }

  .bulk-actions span {
    font-size: 11px;
  }

  .bulk-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 11px;
  }

  .bulk-actions .btn svg {
    width: 12px;
    height: 12px;
  }

  .offers-table-row .btn {
    padding: 0.25rem 0.5rem;
    font-size: 10px;
    white-space: nowrap;
  }

  .offers-table-row .btn svg {
    width: 12px;
    height: 12px;
  }

  .offers-page .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }

  .offers-page .pagination .page-item {
    margin: 0;
  }

  .offers-page .pagination .page-link {
    padding: 0.25rem 0.4rem;
    font-size: 11px;
  }

  .offers-page .form-check-input {
    width: 14px;
    height: 14px;
  }

  /* Dashboard page mobile styles */
  .dashboard-page {
    padding: 8px;
  }

  .dashboard-page h1.font40 {
    font-size: 24px !important;
  }

  .dashboard-page .text-muted {
    font-size: 12px;
  }

  /* Property Progress Tracker */
  .property-select {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .progress-card, .summary-card {
    width: 140px;
    min-height: 80px;
    margin-bottom: 0.8rem;
  }

  .progress-card .icon-container,
  .summary-card .icon-container {
    bottom: 5px;
    right: 10px;
  }

  .progress-card .icon,
  .summary-card .icon {
    font-size: 20px;
  }

  /* Dashboard Bottom Section */
  .quick-action-card {
    width: 120px;
    height: 180px !important;
    margin-bottom: 0.8rem;
  }

  .quick-action-card .icon {
    font-size: 24px;
    padding-top: 20px;
  }

  .quick-action-card .label {
    font-size: 12px;
  }

  /* Recent Activity Table */
  .table-responsive {
    margin: 0 -8px;
    padding: 0 8px;
  }

  .table th {
    font-size: 12px;
    padding: 0.5rem;
  }

  .table td {
    font-size: 11px;
    padding: 0.5rem;
  }

  .badge {
    font-size: 10px;
    padding: 0.3rem 0.6rem;
  }

  /* Chart Containers */
  .chart-container {
    height: 250px;
    margin-bottom: 1rem;
  }

  .recharts-wrapper {
    font-size: 10px;
  }

  .recharts-legend-item-text {
    font-size: 11px;
  }

  .recharts-tooltip-label {
    font-size: 11px;
  }

  /* Common Sidebar and Hamburger Menu Styles */
  .app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1001;
    background: white;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .app-header nav {
    margin-top: 0.5rem !important;
  }

  .body-wrapper-inner {
    margin-top: 97px;
  }

  .left-sidebar {
    width: 250px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    background: white;
    z-index: 1002;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
  }

  body.show-sidebar .sidebar-overlay {
    display: block;
  }

  .app-header .btn.ti-menu-2 {
    display: block !important;
    color: #000 !important;
    font-size: 24px !important;
    font-weight: bold !important;
  }
}

@media (max-width: 360px) {
  .summary-card .label p {
    font-size: 10px;
    white-space: normal;
    word-break: keep-all;       
    line-height: 1.3;
  }
    .summary-card {
    padding: 0.75rem;
  }
}