 
   /* root */

   
   :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
            --transition: all 0.3s ease;
        }
        

           body {
            background-color: #f5f7fb;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            padding-bottom: 20px;
        }

        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 20px 15px;
            border-radius: 0 0 20px 20px;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
            margin-bottom: 20px;
        }
           .section-title {
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: 10px;
            color: var(--primary);
        }
 
  /* Bottom Navigation */
        .tab-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
            z-index: 100;
            border-radius: 20px 20px 0 0;
            height: 70px;
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 12px;
            position: relative;
            flex: 1;
            transition: var(--transition);
        }
        
        .tab-item a {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: inherit;
            width: 100%;
        }
        
        .tab-item.active {
            color: var(--primary);
        }
        
        .tab-item.active .tab-icon {
            transform: translateY(-5px);
        }
        
        .tab-icon {
            font-size: 20px;
            margin-bottom: 4px;
            transition: var(--transition);
        }
        
        .tab-item.active::before {
            content: '';
            position: absolute;
            top: -10px;
            width: 40px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .fab-button {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
            z-index: 101;
            transition: var(--transition);
        }
        
        .fab-button:active {
            transform: translateX(-50%) scale(0.95);
            box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
        }
        
        .fab-icon {
            font-size: 24px;
        }
        
        .content-container {
            padding: 0 15px 90px 15px;
        }



        /* Statement Page Css */


          
        /* Patient Selector */
        .patient-selector {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            margin-bottom: 20px;
        }
        
        .form-label {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 12px;
        }
        
        /* Statement Cards */
        .statement-card {
            background: white;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            padding: 20px;
            margin-bottom: 20px;
            transition: var(--transition);
        }
        
        .statement-card:hover {
            box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        }
        
        .statement-item {
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .statement-item:last-child {
            border-bottom: none;
        }
        
        .total-section {
            background: rgba(76, 201, 240, 0.08);
            border-radius: 16px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .payment-history {
            margin-top: 20px;
        }
        
        .badge-paid {
            background-color: rgba(40, 167, 69, 0.15);
            color: #28a745;
            font-size: 0.75rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .badge-pending {
            background-color: rgba(255, 193, 7, 0.15);
            color: #ffc107;
            font-size: 0.75rem;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 600;
        }
        
        /* Patient Info */
        .patient-info-card {
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
            color: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
        }
        
        .info-row {
            display: flex;
            margin-bottom: 12px;
        }
        
        .info-label {
            width: 100px;
            font-weight: 600;
            opacity: 0.8;
        }
        
        .info-value {
            flex: 1;
        }
        
        /* Select2 Customization */
        .select2-container .select2-selection--single {
            height: 50px !important;
            border: 1px solid #e0e0e0 !important;
            border-radius: 12px !important;
            display: flex;
            align-items: center;
            padding-left: 15px;
            font-size: 16px;
        }
        
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 100%;
            right: 15px;
        }
        
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            font-size: 16px;
            color: var(--dark);
        }
        
        .select2-container--default .select2-results__option--highlighted[aria-selected] {
            background-color: var(--primary);
        }
        
        /* Amount styling */
        .amount {
            font-weight: 600;
            font-size: 16px;
        }
        
        .amount-positive {
            color: #28a745;
        }
        
        .amount-negative {
            color: #dc3545;
        }
        
        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
        }
        
        .empty-icon {
            font-size: 60px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        


        /* Appointment Style */



        
        body {
            background-color: var(--app-bg);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: var(--dark);
            padding-top: var(--header-height);
            padding-bottom: var(--nav-height);
            min-height: 100vh;
            position: relative;
        }
        
        /* App Header */
        .app-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .app-header h1 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .header-icon {
            font-size: 1.2rem;
            color: white;
        }
        
        .appointment-count {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 4px 12px;
            font-weight: 500;
            font-size: 0.85rem;
        }
        
        /* Main Content */
        .main-content {
            padding: 15px;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 15px 0 10px;
            color: var(--dark);
            display: flex;
            align-items: center;
        }
        
        /* Appointment Cards */
        .appointment-card {
            background: white;
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            margin-bottom: 16px;
            overflow: hidden;
            transition: var(--transition);
            border: none;
        }
        
        .appointment-card:active {
            transform: scale(0.98);
        }
        
        .appointment-header {
            padding: 16px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        
        .patient-info {
            display: flex;
            align-items: center;
        }
        
        .patient-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--success), var(--primary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 12px;
            font-size: 18px;
        }
        
        .patient-name {
            font-weight: 700;
            font-size: 16px;
            color: var(--dark);
            margin-bottom: 2px;
        }
        
        .appointment-time {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .appointment-time i {
            margin-right: 4px;
            font-size: 12px;
        }
        
        .appointment-body {
            padding: 16px;
        }
        
        .info-row {
            display: flex;
            margin-bottom: 12px;
            align-items: flex-start;
        }
        
        .info-icon {
            width: 24px;
            color: var(--primary);
            margin-right: 12px;
            font-size: 16px;
            padding-top: 2px;
        }
        
        .info-content {
            flex: 1;
        }
        
        .info-label {
            font-size: 13px;
            color: var(--gray);
            margin-bottom: 2px;
        }
        
        .info-value {
            font-size: 15px;
            color: var(--dark);
            font-weight: 500;
        }
        
        .diagnosis-section, .treatment-section {
            background: rgba(76, 201, 240, 0.08);
            border-radius: 12px;
            padding: 12px;
            margin-top: 12px;
        }
        
        .section-label {
            font-size: 13px;
            color: var(--gray);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
        }
        
        .section-label i {
            margin-right: 6px;
            color: var(--success);
        }
        
        .section-content {
            font-size: 14px;
            color: var(--dark);
            line-height: 1.5;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px 20px;
        }
        
        .empty-icon {
            font-size: 60px;
            color: #d1d5db;
            margin-bottom: 16px;
        }
        
        .empty-text {
            color: var(--gray);
            font-size: 16px;
        }
        
        /* Bottom Navigation */
        .tab-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
            z-index: 100;
            border-radius: 20px 20px 0 0;
            height: 70px;
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 12px;
            position: relative;
            flex: 1;
            transition: var(--transition);
        }
        
        .tab-item a {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: inherit;
            width: 100%;
        }
        
        .tab-item.active {
            color: var(--primary);
        }
        
        .tab-item.active .tab-icon {
            transform: translateY(-5px);
        }
        
        .tab-icon {
            font-size: 20px;
            margin-bottom: 4px;
            transition: var(--transition);
        }
        
        .tab-item.active::before {
            content: '';
            position: absolute;
            top: -10px;
            width: 40px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .fab-button {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
            z-index: 101;
            transition: var(--transition);
        }
        
        .fab-button:active {
            transform: translateX(-50%) scale(0.95);
            box-shadow: 0 2px 8px rgba(67, 97, 238, 0.4);
        }
        
        .fab-icon {
            font-size: 24px;
        }
        
        .content-container {
            padding: 0 15px 90px 15px;
        }
        
        /* Status Badges */
        .status-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }
        
        .status-confirmed {
            background: rgba(76, 201, 240, 0.15);
            color: var(--success);
        }
        
        .status-pending {
            background: rgba(255, 193, 7, 0.15);
            color: #ffc107;
        }
        
        /* Search Bar */
        .search-container {
            padding: 10px 15px;
            background: var(--app-bg);
            position: sticky;
            top: var(--header-height);
            z-index: 99;
        }
        
        .search-bar {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 12px;
            padding: 8px 15px;
            box-shadow: var(--card-shadow);
        }
        
        .search-bar i {
            color: var(--gray);
            margin-right: 10px;
        }
        
        .search-bar input {
            border: none;
            outline: none;
            width: 100%;
            font-size: 16px;
            background: transparent;
        }
        
        /* Filter Chips */
        .filter-chips {
            display: flex;
            gap: 8px;
            padding: 15px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        
        .filter-chips::-webkit-scrollbar {
            display: none;
        }
        
        .filter-chip {
            padding: 8px 16px;
            background: white;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: var(--card-shadow);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-chip.active {
            background: var(--primary);
            color: white;
        }
        
        /* Hidden elements */
        .hidden {
            display: none !important;
        }


        /* Dashboard css */

               .dashboard-header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 20px 15px;
            border-radius: 0 0 20px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .date-display {
            font-size: 0.9rem;
            opacity: 0.9;
        }


        .welcome-text h1 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .welcome-text p {
            font-size: 0.9rem;
            opacity: 0.9;
            margin: 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 0 15px;
        }

        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .stat-card:active {
            transform: scale(0.98);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 8px 8px 0 0;
        }

        .stat-card.danger::before {
            background: linear-gradient(90deg, var(--danger), var(--warning));
        }

        .stat-card.success::before {
            background: linear-gradient(90deg, var(--success), var(--info));
        }

        .stat-card.warning::before {
            background: linear-gradient(90deg, var(--warning), #b5179e);
        }

        .stat-content {
            display: flex;
            align-items: center;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            background: rgba(67, 97, 238, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .stat-card.danger .stat-icon {
            background: rgba(230, 57, 70, 0.1);
        }

        .stat-card.success .stat-icon {
            background: rgba(76, 201, 240, 0.1);
        }

        .stat-card.warning .stat-icon {
            background: rgba(247, 37, 133, 0.1);
        }

        .stat-icon i {
            font-size: 1.5rem;
        }

        .stat-card .stat-icon i {
            color: var(--primary);
        }

        .stat-card.danger .stat-icon i {
            color: var(--danger);
        }

        .stat-card.success .stat-icon i {
            color: var(--success);
        }

        .stat-card.warning .stat-icon i {
            color: var(--warning);
        }

        .stat-info h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 0;
            color: var(--dark);
        }

        .stat-info p {
            font-size: 0.8rem;
            color: var(--gray);
            margin: 5px 0 0;
            font-weight: 500;
        }

        .chart-container {
            background: white;
            border-radius: 20px;
            box-shadow: var(--card-shadow);
            padding: 20px;
            margin: 25px 15px;
        }

        .chart-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--dark);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .chart-title span {
            color: var(--primary);
            font-size: 0.9rem;
            font-weight: 500;
        }

        
        
        /* Status Badges */
        .status-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }
        
        .status-confirmed {
            background: rgba(76, 201, 240, 0.15);
            color: var(--success);
        }
        
        .status-pending {
            background: rgba(255, 193, 7, 0.15);
            color: #ffc107;
        }
        
        /* Search Bar */
        .search-container {
            padding: 10px 15px;
            background: var(--app-bg);
            position: sticky;
            top: var(--header-height);
            z-index: 99;
        }
        
        .search-bar {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 12px;
            padding: 8px 15px;
            box-shadow: var(--card-shadow);
        }
        
        .search-bar i {
            color: var(--gray);
            margin-right: 10px;
        }
        
        .search-bar input {
            border: none;
            outline: none;
            width: 100%;
            font-size: 16px;
            background: transparent;
        }
        
        /* Filter Chips */
        .filter-chips {
            display: flex;
            gap: 8px;
            padding: 15px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        
        .filter-chips::-webkit-scrollbar {
            display: none;
        }
        
        .filter-chip {
            padding: 8px 16px;
            background: white;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: var(--card-shadow);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .filter-chip.active {
            background: var(--primary);
            color: white;
        }
        
        /* Hidden elements */
        .hidden {
            display: none !important;
        }

        .section-title {
            padding: 10px 15px 5px;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
        }

        .section-title i {
            margin-right: 10px;
            color: var(--primary);
        }