       /* --- Base Reset --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background-color: #f4f6f9;
            color: #222;
            line-height: 1.5;
            padding-bottom: 40px;
        }

        /* --- Header & Navigation Menu --- */
        .header {
            background-color: #ffffff;
            padding: 3px;
            border-bottom: 1px solid #ddd;
            position: relative;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.2rem;
            font-weight: bold;
            color: #0066cc;
        }

        .menu-toggle {
            background: #f0f0f0;
            border: 1px solid #ccc;
            padding: 6px 12px;
            font-size: 1.2rem;
            border-radius: 4px;
            cursor: pointer;
        }

        .nav-menu {
            display: none; /* Hidden by default */
            margin-top: 15px;
            border-top: 1px solid #eee;
        }

        .nav-menu.active {
            display: block; /* Shows when clicked */
        }

        .nav-menu a {
            display: block;
            padding: 12px 5px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #eee;
        }

        /* --- Page Wrapper --- */
        .container {
            padding: 15px;
            max-width: 600px;
            margin: 0 auto;
        }

        .section-title {
            margin: 25px 0 10px 0;
            font-size: 1.3rem;
            color: #333;
            text-align: center;
        }

        /* --- Form View Structure (Fixed) --- */
        .form-card {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #ddd;
        }

        .form-group {
            margin-bottom: 15px;
            display: block; /* Blocks elements to prevent layout corruption */
        }

        .form-group label {
            display: block;
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 6px;
            color: #444;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            font-size: 1rem; /* Prevents auto-zoom scaling bugs on iOS */
            border: 1px solid #bbb;
            border-radius: 6px;
            background-color: #fff;
            font-family: inherit;
            box-sizing: border-box;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #0066cc;
        }

        .submit-button {
            width: 100%;
            padding: 14px;
            background-color: #0066cc;
            color: #ffffff;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            margin-top: 5px;
        }

        .submit-button:active {
            background-color: #004499;
        }

        /* --- Table View Structure (Fixed Mobile List Block) --- */
        .table-card {
            background-color: #ffffff;
            border-radius: 8px;
            border: 1px solid #ddd;
            padding: 10px;
        }

        .data-row {
            padding: 12px;
            border-bottom: 1px solid #eee;
        }

        .data-row:last-child {
            border-bottom: none;
        }

        .data-item {
            margin-bottom: 6px;
            font-size: 0.95rem;
        }

        .data-label {
            font-weight: bold;
            color: #666;
            display: inline-block;
            width: 90px;
        }

        /* Badge and Buttons */
        .badge {
            background-color: #e6f4ea;
            color: #137333;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: bold;
            font-size: 0.85rem;
        }

        .button-container {
            margin-top: 10px;
            display: flex;
            gap: 10px;
        }

        .btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 4px;
            font-weight: bold;
            font-size: 0.85rem;
            cursor: pointer;
            text-align: center;
        }
        .RadUpload .ruBrowse{ background-color: #e1f0ff !important; color: #000; display:block}
        .btn-add { background-color: #f5435e; color: #ffffff; }
        .btn-view { background-color: #e1f0ff; color: #0066cc; }
        .btn-delete { background-color: #ffebeb; color: #cc0000; }
        .btn:active { opacity: 0.7; }

/* Center the search form container under the H2 */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px 0;
    width: 100%;
}

/* Form layout structure */
.search-form {
    display: flex;
    align-items: flex-start; /* Aligns the button to the top of the container */
    width: 100%;
    max-width: 500px;
    gap: 10px;
    padding: 0 15px;
}

/* Group container for the input and subtext */
.search-field-group {
    display: flex;
    flex-direction: column; /* Stacks the text field and counter vertically */
    flex-grow: 1;
}

/* Style the text input */
.search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #007bff;
}

/* Small text styling for the results counter */
.search-results-count {
    font-size: 13px;
    color: #666; /* Muted gray text color */
    margin-top: 5px; /* Creates spacing from the input box */
    padding-left: 2px;
}

/* Button style matching your existing theme */
.btn-search {
    padding: 10px 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    height:40px;
}

.btn-search:hover {
    background-color: #0056b3;
}

/* ==========================================
   NEW BLOCK C: MODULE NAVIGATION GRID
   ========================================== */
.module-grid {
    display: grid;
    /* Creates 4 equal columns on desktop; wraps on smaller devices */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px; /* Uniform spacing between square modules */
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto; /* Centers the whole grid block */
    padding: 0 15px;
    box-sizing: border-box;
}

/* Core styling to make elements behave like clickable square blocks */
.module-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Forces the box to always stay a perfect square */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Smooth lift and glow effect when mouse hovers over a square */
.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
}

/* Layout for items inside the squares */
.module-icon {
    font-size: 36px; /* Prominent emoji/icon size */
    margin-bottom: 12px;
}

.module-title {
    font-size: 16px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    color: #ffffff; /* White text looks sharpest on solid accent backgrounds */
    text-align: center;
}

/* Accent color variants to distinguish different dashboard modules */
.card-green {
    background-color: #28a745; /* Matches your existing btn-add scheme */
}

.card-blue {
    background-color: #007bff; /* Matches your existing search button scheme */
}

.card-purple {
    background-color: #6f42c1;
}

.card-orange {
    background-color: #fd7e14;
}

.card-yellow {
    background-color: #e0e221;
}
.relatedAds ul {
    display: flex;
    gap: 8px;           /* space between thumbnails */
    list-style: none;
    padding: 0;
    margin: 0;
}

.relatedAds li {
    margin: 0;
}

.relatedAds .DocImage {
    width: 65px;
    height: 65px;
    object-fit: cover;  /* crops images to fill the square */
    display: block;
}

/* Main control */
.RadAsyncUpload {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Upload rows */
.RadAsyncUpload .ruInputs,
.RadAsyncUpload .ruInputs li {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
}

/* File picker area */
.RadAsyncUpload .ruFileWrap {
    display: inline-block !important;
    visibility: visible !important;
}

/* Uploaded file list */
.RadAsyncUpload .ruUploadedFiles {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Individual uploaded files */
.RadAsyncUpload .ruUploadedFiles li {
    display: list-item !important;
    visibility: visible !important;
    min-height: 24px;
    opacity: 1 !important;
}

/* Progress area */
.RadAsyncUpload .ruUploadProgress {
    display: inline-block !important;
}

/* Buttons */
.RadAsyncUpload .ruButton,
.RadAsyncUpload input[type="button"] {
    display: inline-block !important;
    visibility: visible !important;
}