* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #d4ffd8, #d4ffd8 100%);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        .header {
            background: linear-gradient(135deg, #046909 0%, #05750e 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .header p {
            opacity: 0.9;
            font-size: 16px;
        }

        .form-container {
            padding: 40px;
            max-width: 100%;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 25px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fafbfc;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .drug-selection {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .drug-selection h3 {
            margin-bottom: 20px;
            color: #2c5aa0;
            font-size: 18px;
            text-align: center;
        }

        .selection-options {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 25px;
        }

        .radio-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .radio-group input[type="radio"] {
            width: auto;
            margin: 0;
        }

        .radio-group label {
            text-transform: none;
            font-weight: 500;
            font-size: 16px;
            margin: 0;
        }

        .file-upload {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .file-upload input[type="file"] {
            opacity: 0;
            position: absolute;
            z-index: -1;
        }

        .file-upload-label {
            display: block;
            padding: 20px;
            border: 2px dashed #a6f1b0;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .file-upload-label:hover {
            background: #e9ecef;
            border-color: #2c5aa0;
        }

        .file-upload-label i {
            font-size: 24px;
            margin-bottom: 10px;
            display: block;
            color: #667eea;
        }

        .submit-btn {
            width: 100%;
            max-width: 300px;
            margin: 30px auto 0;
            display: block;
            padding: 15px;
            background: linear-gradient(135deg, #06cc0f 0%, #57b15e 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(70, 233, 6, 0.4);
        }

        .hidden {
            display: none;
        }

        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 20px;
            border-radius: 12px;
            margin-top: 20px;
            border: 1px solid #c3e6cb;
            text-align: center;
        }

        /* Custom Interactive Dropdown Styles */
        .custom-dropdown {
            position: relative;
            width: 100%;
        }

        .dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            background: #fafbfc;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .dropdown-header:hover {
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .dropdown-header.active {
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .dropdown-arrow {
            transition: transform 0.3s ease;
            color: #667eea;
            font-weight: bold;
        }

        .dropdown-header.active .dropdown-arrow {
            transform: rotate(180deg);
        }

        .dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 2px solid #667eea;
            border-top: none;
            border-radius: 0 0 12px 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s ease;
        }

        .dropdown-content.show {
            max-height: 400px;
            overflow-y: auto;
        }

        .search-box {
            padding: 15px;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            background: white;
            z-index: 1001;
        }

        .search-box input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            margin: 0;
        }

        .medicine-grid {
            padding: 10px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
        }

        .medicine-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border: 2px solid #f0f0f0;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: #fafbfc;
            cursor: pointer;
        }

        .medicine-item:hover {
            border-color: #667eea;
            background: white;
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
        }

        .medicine-item.selected {
            border-color: #667eea;
            background: linear-gradient(45deg, #f8f9ff, #e8f0fe);
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
        }

        .medicine-icon {
            font-size: 20px;
            margin-right: 12px;
            min-width: 25px;
        }

        .medicine-info {
            flex: 1;
        }

        .medicine-name {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .medicine-dose {
            color: #666;
            font-size: 12px;
            margin-top: 2px;
        }

        .medicine-price {
            color: #2c5aa0;
            font-weight: 600;
            font-size: 13px;
            margin-top: 2px;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: 10px;
        }

        .qty-btn {
            width: 25px;
            height: 25px;
            border: 2px solid #667eea;
            background: white;
            color: #667eea;
            border-radius: 50%;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .qty-btn:hover {
            background: #667eea;
            color: white;
            transform: scale(1.05);
        }

        .qty-display {
            min-width: 20px;
            text-align: center;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .selected-medicines {
            margin-top: 15px;
            padding: 15px;
            background: #f8f9ff;
            border-radius: 8px;
            border: 2px solid #e8f0fe;
        }

        .selected-medicines:empty {
            display: none;
        }

        .selected-medicines::before {
            content: "Selected Medicines:";
            display: block;
            font-weight: 600;
            color: #2c5aa0;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .selected-medicine-tag {
            display: inline-flex;
            align-items: center;
            background: #667eea;
            color: white;
            padding: 6px 10px;
            border-radius: 15px;
            margin: 3px 3px 3px 0;
            font-size: 12px;
        }

        .selected-medicine-tag .remove-btn {
            background: rgba(255, 255, 255, 0.3);
            border: none;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            margin-left: 6px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .selected-medicine-tag .remove-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .total-price {
            margin-top: 15px;
            padding: 12px;
            background: linear-gradient(135deg, #2c5aa0, #667eea);
            color: white;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
        }

        @media (max-width: 768px) {
            .container {
                margin: 10px;
                max-width: calc(100% - 20px);
            }

            .form-container {
                padding: 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .selection-options {
                flex-direction: column;
                gap: 15px;
                align-items: center;
            }

            .header {
                padding: 20px;
            }

            .header h1 {
                font-size: 24px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .form-container {
                padding: 15px;
            }

            .drug-selection {
                padding: 15px;
            }
        }

         /* Login Modal Styles */
 .login-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.8);
     backdrop-filter: blur(10px);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
     opacity: 1;
     transition: opacity 0.3s ease;
 }

 .login-modal-overlay.hidden {
     display: none;
     opacity: 0;
 }

 .login-modal {
     background: linear-gradient(145deg, #ffffff, #f8f9fa);
     border-radius: 20px;
     padding: 40px;
     width: 90%;
     max-width: 450px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
     transform: translateY(0);
     transition: transform 0.3s ease;
     border: 1px solid rgba(255, 255, 255, 0.2);
     position: relative;
 }

 .login-modal-header {
     text-align: center;
     margin-bottom: 30px;
 }

 .login-modal-title {
     font-size: 28px;
     font-weight: 700;
     color: #2c3e50;
     margin-bottom: 10px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .login-modal-subtitle {
     color: #6c757d;
     font-size: 16px;
     margin: 0;
 }

 .login-buttons {
     display: flex;
     gap: 15px;
     margin-top: 30px;
 }

 .login-btn {
     flex: 1;
     padding: 15px 25px;
     border: none;
     border-radius: 12px;
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     text-decoration: none;
     text-align: center;
     display: inline-block;
 }

 .login-btn-primary {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
 }

 .login-btn-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
 }

 .login-btn-secondary {
     background: #f8f9fa;
     color: #6c757d;
     border: 2px solid #e9ecef;
 }

 .login-btn-secondary:hover {
     background: #e9ecef;
     transform: translateY(-2px);
 }

 .login-close-btn {
     position: absolute;
     top: 20px;
     right: 25px;
     background: none;
     border: none;
     font-size: 28px;
     color: #6c757d;
     cursor: pointer;
     transition: color 0.3s ease;
 }

 .login-close-btn:hover {
     color: #495057;
 }