
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html, body {
            height: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f5f5f5;
            padding: 20px 16px 90px; /* Added bottom padding for buttons */
            line-height: 1;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .form-container {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 16px;
        }

        .nav-button {
            display: inline-block;
            background: linear-gradient(135deg, #6c757d, #5a6268);
            color: white;
            text-decoration: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 20px;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
            text-align: center;
            width: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .nav-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
            text-decoration: none;
            color: white;
        }

        .nav-button:active {
            transform: translateY(0);
        }

        .form-title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 24px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-weight: 500;
            color: #555;
            margin-bottom: 8px;
            font-size: 16px;
        }
        .search{
            width:fit-content !important;
        }
        input[type="text"],textarea,
        input[type="number"] {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s ease;
            background-color: #fff;
        }

        input[type="text"]:focus,textarea:focus,
        input[type="number"]:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        .buttons-container {
            display: flex;
            gap: 12px;
            height: 60px;
            position: fixed; /* Changed to fixed positioning */
            bottom: 20px; /* Position from bottom */
            left: 16px;
            right: 16px;
            z-index: 100; /* Ensure it's above other content */
        }

        .camera-container {
            flex: 1;
            text-align: center;
        }
        hr{
            margin:10px;
        }
        .camera-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }

        .camera-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        }

        .camera-btn:active {
            transform: translateY(0);
        }

        input[type="file"] {
            display: none;
        }

        .image-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .preview-item {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            aspect-ratio: 1/1;
        }

        .preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .remove-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            background: rgba(255, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .remove-button {
            border:#dc3545 !important;
            color: #dc3545 !important;
        }

        .submit-btn {
            flex: 1;
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }
        .button {
            flex: 1;
            color: #007bff;
            border: #007bff;
            background: transparent !important;
            border-style:solid !important;
            border-width:1px !important;
            border-radius: 8px;
            padding: 20px;
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 18px;
            font-weight: 200;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }
        button {
            flex: 1;
            color: #007bff;
            border: #007bff;
            background: transparent !important;
            border-style:solid !important;
            border-width:1px !important;
            border-radius: 8px;
            padding: 20px;
            padding-top: 10px;
            padding-bottom: 10px;
            font-size: 18px;
            font-weight: 200;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }
        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .camera-icon {
            display: inline-block;
            margin-right: 8px;
            font-size: 20px;
        }

        /* NEW STYLES: Character counter and clear button */
        .description-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .char-counter {
            font-size: 14px;
            color: #666;
        }
        
        .char-counter.limit-reached {
            color: #dc3545;
            font-weight: 500;
        }
        
        .clear-btn {
            background: none;
            border: none;
            color: #007bff;
            cursor: pointer;
            font-size: 14px;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        
        .clear-btn:hover {
            background-color: rgba(0, 123, 255, 0.1);
        }
        
        textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* NEW STYLES: Units section */
        .units-container {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-top: 8px;
        }
        
        .units-container label {
            margin: 0;
            font-size: 14px;
            color: #666;
            white-space: nowrap;
            min-width: fit-content;
        }
        
        .dimension-input {
            flex: 1;
            max-width: 80px;
            padding: 10px 12px;
            text-align: center;
        }
        
        .units-label {
            font-size: 14px;
            color: #888;
            margin-left: 4px;
        }

        /* Mobile-specific optimizations */
        @media (max-width: 480px) {
            body {
                padding: 16px 12px 80px; /* Adjusted bottom padding */
            }
            
            .form-title {
                font-size: 22px;
                margin-bottom: 20px;
            }

            .nav-button {
                font-size: 15px;
                padding: 10px 16px;
                margin-bottom: 16px;
            }
            
            label {
                font-size: 15px;
            }
            
            input[type="text"],
            input[type="number"] {
                font-size: 16px;
            }
            
            .submit-btn, .camera-btn {
                font-size: 17px;
            }

            .image-preview {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .buttons-container {
                height: 55px;
                left: 12px;
                right: 12px;
                bottom: 16px;
            }
            
            /* Adjustments for new elements */
            .char-counter, .clear-btn {
                font-size: 13px;
            }
            
            .units-container {
                gap: 8px;
            }
            
            .dimension-input {
                max-width: 70px;
                padding: 8px 10px;
                font-size: 15px;
            }
            
            .units-container label {
                font-size: 13px;
            }
            
            .units-label {
                font-size: 13px;
            }
        }

        /* Very small screens */
        @media (max-width: 320px) {
            .buttons-container {
                flex-direction: column;
                height: auto;
                gap: 10px;
            }
            
            .camera-btn, .submit-btn {
                padding: 12px;
                height: 50px;
            }
            
            .description-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .nav-button {
                font-size: 14px;
                padding: 8px 12px;
            }
            
            .units-container {
                gap: 6px;
            }
            
            .dimension-input {
                max-width: 60px;
                font-size: 14px;
            }
        }

        /* Landscape orientation on small screens */
        @media (max-height: 500px) and (orientation: landscape) {
            .form-container {
                overflow-y: auto;
                max-height: 60vh;
            }
            
            .buttons-container {
                height: 50px;
                position: fixed;
                bottom: 10px;
            }
            
            body {
                padding-bottom: 70px;
            }
        }
