        /* Hide Frappe default page wrappers */
        .page-header-wrapper,
        .page-footer {
            display: none !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            margin: 0;
            background: url('https://habi-bayan.s3.ap-south-1.amazonaws.com/HABI-BAYAN+mat+weave+(1).png') center/cover fixed;
            color: #1A1A1A;
            overflow-x: hidden;
            width: 100%;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(248, 228, 208, 0.1);
            z-index: -1;
        }

        .custom-navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(135deg, #178F65, #1CA7A5);
            z-index: 1002;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .navbar-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.5rem;
            transition: opacity 0.3s;
        }

        .navbar-logo:hover {
            opacity: 0.9;
            text-decoration: none;
            color: white;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #F6C441, #E34E9A);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 22px;
            color: white;
        }

        .navbar-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            font-size: 0.9rem;
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #F6C441, #E34E9A);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
        }

        .user-name {
            font-weight: 500;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .login-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
            cursor: pointer;
        }

        .login-btn:hover {
            background: rgba(255,255,255,0.3);
            color: white;
            text-decoration: none;
            transform: translateY(-1px);
        }

        .signup-btn {
            background: rgba(255,255,255,0.9);
            color: #178F65;
            border: 1px solid rgba(255,255,255,0.9);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }
        .signup-btn:hover {
            background: white;
            color: #178F65;
            text-decoration: none;
            transform: translateY(-1px);
        }

        .hamburger {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            width: 40px;
            height: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .hamburger:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.05);
        }

        .hamburger span {
            display: block;
            width: 20px;
            height: 2px;
            background: white;
            margin: 2px 0;
            border-radius: 2px;
            transition: 0.3s;
        }

        .hamburger.active {
            background: rgba(231,76,154,0.3);
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(-45deg) translate(-4px, 4px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(45deg) translate(-4px, -4px);
        }

        .side-drawer {
            position: fixed;
            top: 60px;
            right: -400px;
            width: 400px;
            height: calc(100vh - 60px);
            background: linear-gradient(135deg, #178F65, #1CA7A5);
            z-index: 1001;
            transition: right 0.3s ease;
            overflow-y: auto;
            padding: 20px;
            box-shadow: -5px 0 25px rgba(0,0,0,0.3);
        }

        .side-drawer.open {
            right: 0;
        }

        .drawer-profile {
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .drawer-user-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .drawer-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #F6C441, #E34E9A);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: white;
            border: 3px solid rgba(255,255,255,0.3);
        }

        .drawer-user-details h4 {
            color: white;
            margin: 0 0 5px 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .drawer-user-details p {
            color: rgba(255,255,255,0.8);
            margin: 0;
            font-size: 0.9rem;
        }

        .drawer-user-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .drawer-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
            cursor: pointer;
        }

        .drawer-btn:hover {
            background: rgba(255,255,255,0.3);
            color: white;
            text-decoration: none;
            transform: translateY(-1px);
        }

        .drawer-btn.logout {
            background: rgba(231,76,154,0.3);
            border-color: rgba(231,76,154,0.5);
        }

        .drawer-btn.logout:hover {
            background: rgba(231,76,154,0.5);
        }

        .menu-section {
            margin-bottom: 25px;
        }

        .menu-section h4 {
            color: rgba(255,255,255,0.9);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0 0 12px 0;
            padding-left: 5px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 12px 15px;
            margin-bottom: 8px;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
        }

        .menu-item:hover {
            background: rgba(255,255,255,0.2);
            border-color: rgba(255,255,255,0.3);
            transform: translateX(-3px);
            color: white;
            text-decoration: none;
        }

        .menu-item-icon {
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
        }

        .menu-item-label {
            flex: 1;
        }

        .drawer-overlay {
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            height: calc(100vh - 60px);
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

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

        .navbar.navbar-default,
        .navbar-fixed-top,
        header.navbar,
        .page-head,
        .page-title,
        .container.page-body,
        body > .navbar,
        #navbar-breadcrumbs,
        .page-head-content,
        .container > .page-header {
            display: none !important;
        }

        body, html {
            margin: 0 !important;
            padding: 0 !important;
        }

        #page-survey-dashboard,
        .page-wrapper,
        .page-content-wrapper,
        .page-content {
            padding: 0 !important;
            margin: 0 !important;
        }

        .container {
            max-width: 100%;
            width: 100%;
            margin: 0;
            padding: 60px 0 0 0;
        }

        .header {
            background: linear-gradient(135deg, #178F65, #1CA7A5);
            color: white;
            padding: 40px 40px;
            border-radius: 0;
            margin-bottom: 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.95;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 0;
            margin-bottom: 0;
        }

        .stat-card {
            background: white;
            padding: 35px 25px;
            border-radius: 0;
            box-shadow: none;
            text-align: center;
            border-right: 1px solid #e0e0e0;
        }

        .stat-card:last-child {
            border-right: none;
        }

        .stat-number {
            font-size: 3em;
            font-weight: bold;
            color: #178F65;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 0.9em;
            color: #7f8c8d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .controls {
            background: white;
            padding: 20px 40px;
            border-radius: 0;
            margin-bottom: 0;
            display: flex;
            justify-content: space-between;
            gap: 15px;
            flex-wrap: wrap;
            border-top: 1px solid #e0e0e0;
            border-bottom: 1px solid #e0e0e0;
        }

        .controls input, .controls select {
            padding: 10px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 5px;
            font-size: 14px;
        }

        .controls input:focus, .controls select:focus {
            outline: none;
            border-color: #178F65;
        }

        .country-filter-container {
            position: relative;
            min-width: 200px;
        }

        .country-filter-btn {
            padding: 10px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 5px;
            font-size: 14px;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            transition: all 0.3s;
        }

        .country-filter-btn:hover {
            border-color: #178F65;
        }

        .country-filter-btn.active {
            border-color: #178F65;
            background: #f0f9f6;
        }

        .filter-dropdown {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            width: 100%;
            min-width: 280px;
            max-height: 400px;
            background: white;
            border: 2px solid #178F65;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            display: none;
            flex-direction: column;
        }

        .filter-dropdown.active {
            display: flex;
        }

        .filter-search {
            padding: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .filter-search input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 5px;
            font-size: 14px;
        }

        .filter-search input:focus {
            outline: none;
            border-color: #178F65;
        }

        .filter-options {
            overflow-y: auto;
            max-height: 300px;
            padding: 5px 0;
        }

        .filter-option {
            display: flex;
            align-items: center;
            padding: 8px 15px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .filter-option:hover {
            background: #f0f9f6;
        }

        .filter-option input[type="checkbox"] {
            margin-right: 10px;
            cursor: pointer;
            width: 16px;
            height: 16px;
            accent-color: #178F65;
        }

        .filter-option label {
            cursor: pointer;
            flex: 1;
            font-size: 14px;
            user-select: none;
        }

        .filter-actions {
            padding: 10px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 8px;
        }

        .filter-actions button {
            flex: 1;
            padding: 8px 12px;
            border: none;
            border-radius: 5px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .filter-apply {
            background: #178F65;
            color: white;
        }

        .filter-apply:hover {
            background: #156d52;
        }

        .filter-clear {
            background: #e0e0e0;
            color: #333;
        }

        .filter-clear:hover {
            background: #d0d0d0;
        }

        .selected-count {
            background: #178F65;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .search-mode-indicator {
            background: #F6C441;
            color: #333;
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 14px;
            font-weight: 500;
            display: none;
            align-items: center;
            gap: 8px;
        }

        .search-mode-indicator.active {
            display: flex;
        }

        .clear-search-btn {
            background: rgba(0,0,0,0.1);
            border: none;
            padding: 4px 8px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 12px;
        }

        .clear-search-btn:hover {
            background: rgba(0,0,0,0.2);
        }

        .table-container {
            background: white;
            border-radius: 0;
            box-shadow: none;
            overflow: hidden;
        }

        .table-wrapper {
            overflow-x: auto;
            max-width: 100%;
        }

        table {
            width: max-content;
            min-width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: #178F65;
            color: white;
        }

        th {
            padding: 12px;
            text-align: left;
            font-size: 0.9em;
            position: sticky;
            top: 0;
            background: #178F65;
            z-index: 10;
            white-space: nowrap;
        }

        td {
            padding: 12px;
            text-align: left;
            font-size: 0.9em;
            white-space: nowrap;
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        td:nth-child(14),
        td:nth-child(15),
        td:nth-child(16) {
            white-space: normal;
            word-wrap: break-word;
        }

        tbody tr {
            border-bottom: 1px solid #ecf0f1;
        }

        tbody tr:hover {
            background-color: #f8f9fa;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            gap: 10px;
        }

        .pagination button {
            padding: 10px 20px;
            border: none;
            background: #178F65;
            color: white;
            border-radius: 5px;
            cursor: pointer;
        }

        .pagination button:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }

        .loading {
            text-align: center;
            padding: 40px;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #178F65;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.85em;
        }

        .badge-yes {
            background: #d4edda;
            color: #155724;
        }

        .badge-no {
            background: #f8d7da;
            color: #721c24;
        }

        @media (max-width: 968px) {
            .side-drawer {
                width: 85%;
                right: -85%;
            }

            .container {
                padding: 60px 0 0 0;
            }

            .header {
                padding: 30px 20px;
            }

            .header h1 {
                font-size: 2rem;
            }

            .controls {
                padding: 20px;
            }
        }

        @media (max-width: 600px) {
            .custom-navbar {
                padding: 0 15px;
            }

            .navbar-logo {
                font-size: 1.24rem;
            }

            .logo-icon {
                width: 42px;
                height: 42px;
                font-size: 18px;
            }

            .user-name {
                display: none;
            }

            .header {
                padding: 30px 15px;
            }

            .header h1 {
                font-size: 1.75rem;
            }

            .header p {
                font-size: 0.95rem;
            }

            .stat-card {
                padding: 25px 20px;
                border-right: none;
                border-bottom: 1px solid #e0e0e0;
            }

            .stat-card:last-child {
                border-bottom: none;
            }

            .stat-number {
                font-size: 2.5rem;
            }

            .controls {
                padding: 15px;
            }
        }
    