// MEDICATIONS AFTER FFO ADDED TO PAGE
        /* Message system CSS */
        .message-container {
            position: fixed;
            top: 80px;
            right: 20px;
            max-width: 400px;
            padding: 15px 40px 15px 15px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            display: none;
            font-weight: 500;
        }
        .message-container.success {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
        }
        .message-container.error {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
        }
        .message-container.info {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
        }
        .message-close {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            padding: 0;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* FFO Button Styling - EXACT from working pattern */
        .ffo-trigger {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            height: 32px;
            margin-left: 8px;
            min-width: 32px;
            padding: 0 8px;
            position: relative;
            transition: all 0.3s ease;
            vertical-align: middle;
        }
        .ffo-trigger:hover {
            background: linear-gradient(135deg, #e67e22, #d35400);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        .ffo-icon {
            font-size: 16px;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Container and layout */
        .medications-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 100px 20px 60px;
        }
        .medications-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        .medications-header h2 {
            color: #2c3e50;
            margin: 0;
            font-size: 28px;
            font-weight: 600;
        }
        .add-medication-btn {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            border: none;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            padding: 12px 24px;
            transition: all 0.3s ease;
        }
        .add-medication-btn:hover {
            background: linear-gradient(135deg, #229954, #27ae60);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        /* Form styling */
        .medication-form {
            background: white;
            border: 1px solid #e0e6ed;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            margin-bottom: 30px;
            padding: 30px;
            display: none;
        }
        .medication-form h3 {
            color: #2c3e50;
            margin-bottom: 25px;
            font-size: 24px;
            font-weight: 600;
        }
        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .form-group {
            flex: 1;
            min-width: 250px;
        }
        .form-group.full-width {
            flex: 100%;
        }
        .form-group label {
            color: #2c3e50;
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            border: 2px solid #e0e6ed;
            border-radius: 6px;
            font-size: 16px;
            padding: 12px;
            transition: border-color 0.3s ease;
            width: 100%;
            box-sizing: border-box;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .form-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            margin-top: 30px;
        }
        .cancel-form-btn {
            background: #95a5a6;
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            padding: 12px 24px;
            transition: all 0.3s ease;
        }
        .cancel-form-btn:hover {
            background: #7f8c8d;
        }
        .save-medication-btn {
            background: linear-gradient(135deg, #3498db, #2980b9);
            border: none;
            border-radius: 6px;
            color: white;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            padding: 12px 24px;
            transition: all 0.3s ease;
        }
        .save-medication-btn:hover {
            background: linear-gradient(135deg, #2980b9, #1f3a93);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        /* Guest message styling */
        .guest-message {
            background: linear-gradient(135deg, #f39c12, #e67e22);
            border-radius: 12px;
            color: white;
            padding: 30px;
            text-align: center;
        }
        .guest-message h3 {
            margin-top: 0;
        }
        .guest-message a {
            background: white;
            border-radius: 6px;
            color: #e67e22;
            display: inline-block;
            font-weight: 600;
            margin-top: 15px;
            padding: 12px 24px;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        .guest-message a:hover {
            background: #f8f9fa;
            transform: translateY(-2px);
        }
